title: How to use Date Only as data type in Entity Framework
body: <p>When I use Entity Framework as an ORM, for each <code>Date</code> data type in my SQL Server DB it creates a <code>DateTime</code> data type <code>y</code> in my MVC project. </p>
  
  <p>I mean, for each table in my DB, in my MVC project is auto-generated the code for this class using <code>DateTime</code> data type, but I don't need time, only the date. </p>
  
  <p>So my question is: what can I do to declare this field as <code>Date</code> only data type or How is commonly handled this situation?.</p>
  
  <pre><code>public partial class Employee
  {        
      public int Id_Employee { get; set; }
      public string Name { get; set; }
      public string Last_Name { get; set; }
      public Nullable&lt;System.DateTime&gt; B_Date { get; set; }
      public Nullable&lt;int&gt; SSN_L4 { get; set; }
      public string Phone_N { get; set; }
      public string Adress_L1 { get; set; }
      public string Adress_City { get; set; }        
  }
  </code></pre>