标签:use day amp where date dbf var user class
var all = db.Content.Where(c => c.UserId == userId && DbFunctions.DiffDays(c.CreateDate,toDate)==0).DefaultIfEmpty().Count();
主要是使用了:
DbFunctions.DiffDays
标签:use day amp where date dbf var user class
原文地址:https://www.cnblogs.com/firstcsharp/p/11725566.html