In My sql db is Date , when i am using entity linq where clause , i am facing issue like "The specified type member 'Date' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported." this is my where clause
TeamWorks.work_plan_dt == DateTime.Now.Date
var t = uow.TeamWork.GetAll().Where(t => t.work_plan_dt.Date == DateTime.Today.Date);
public DateTime? work_plan_dt { get; set; }
I have used dbfunctions.truncatetime
and EntityFunctions.truncatetime
still I am facing the issue , i should not change the datatype in db side from date to datetime , please help me
Advance thanks