LINQ to Entities 不识别方法的解决方案

public void GetList()

{

  DBHelper entity=new DBHelper();

   Expression<Func<Z_EnterpriseApplyGetMoney, bool>> wheres = r => r.AuditTime.ToDatetime().Month == DateTime.Now.Month && r.UserName == EUserInfoBySession.UserName && r.Status == 1;

  var list = entity.Z_EnterpriseApplyGetMoney.Where(wheres.Compile()).ToList();

}

原文地址:https://www.cnblogs.com/bannian/p/5381625.html