q = q.Where(t => System.Data.Entity.SqlServer.SqlFunctions.DateDiff("dd", t.Date, dDate) == 0);
原标题:EF调用函数日期查询
关键词:函数