numeric (1) 썸네일형 리스트형 DbArithmeticExpression arguments must have a numeric common type 유발 소스 var attachFileList = context.AttachFile.Where(x => x.CHECK_DATE.Equals(null) || ( !x.CHECK_DATE.Equals(null) && ((TimeSpan)(DateTime.Now – (DateTime)x.CHECK_DATE)).TotalDays > 30 )).ToList(); -> DbArithmeticExpression arguments must have a numeric common type where 조건절에서 datetime 과 datetime 간의 diff 을 수행하려는 구문에 발생합니다. Mssql sp 에서는 문제없이 수행되는 구문이지만 EntityFramework 에서는 조건절의 Datetime 직접 비교는 지원하.. 이전 1 다음