尝试使用SqlFunctions.DateDiff方法重载,它需要3个输入,如下所示-
var res = from a in db.Set<table1>() where SqlFunctions.DateDiff("dd", a.Date, "20161922") >= 0 && SqlFunctions.DateDiff("dd", a.Date, "20161122") < 0 select a
友情链接: json在线解析 通晓查询 糯晒黄历 姓名打分