sarpay
3/19/2019 - 5:12 PM

EF Functions

// DATE COMPARISON
// Compares just the date, not the time.
var policyQ = from p in GetAll()
              where p.IssueDate == DbFunctions.TruncateTime(DateTime.Today)
              select new
              {
                PolicyId = p.Id,
                p.PolicyNo
              };