<分区> 分区>
下面的查询:
IEnumerable<activity> activityList = PortalContext.activity.Where(item =>
item.schakeling_id == newActivity.schakeling_id &&
item.startdt.Date == DateTime.Now.Date);
我收到这个错误:
"The specified type member 'Date' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported."
我尝试了多种不同的方法,但无法正常工作。任何帮助将不胜感激。
