我正在尝试从我的数据库数据中获取今天的条目, 我怎么一直得到0(零)的结果, 这是我试过的代码
var ddt = DateTime.Today.AddDays(1).AddTicks(-1);
ViewBag.rrr = ddt;//Ok result-09-Oct-16 23:59:59:
var upCommingLecture = _context.LectureGigs
.Include(g => g.Artist).Include(g => g.Genre)
.Where(g => (g.DateTime == ddt));//Results zero in my db i have 1 item on todays date