2013년 9월 28일 토요일

DbArithmeticExpression arguments must have a numeric common type.

DbArithmeticExpression arguments must have a numeric common type.

if (oders.Count() > 0) point = oders.Where(o => (DateTime.Now - o.ShipDate).Days > 7);
위 코드를 아래와 같이 수정하면 된다.
if (oders.Count() > 0) point = oders.Where(o => EntityFunctions.DiffDays(o.ShipDate, DateTime.Now) > 7);