查某一天的数据记录的条数
DateTime date1 = Convert.ToDateTime(DateTime.Now.ToShortDateString()); DateTime date2 = date1.AddDays(1); int count = db.Queryable<XXX>().Where(u => u.comid == comid &&u.createTime>date1&&u.createTime<date2&& u.isdel==false).Count();