I am using Entity frame work, i want to convert SQL query of LIKE date to Entity framework. here is the query
Select * from Schedule where SerialNo='11119' and DueDate like '%2012%'
Try this:
dbcontext.Schedules.Where(s => s.SerialNo == '11119' && s.DueDate.Year == 2012)