Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

entity framework where date between

using System.Data.Entity;

_dbContext.Shipments.Where(s => (DbFunctions.TruncateTime(s.Created_at.Value) >= dateStart && DbFunctions.TruncateTime(s.Created_at.Value) <= dateEnd)).Count();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #entity #framework #date
ADD COMMENT
Topic
Name
8+4 =