title: How to switch to datetime2 in Entity Framework / SQL Server 2008 project
body: <p>We have an Entity Framework 5.0 project with code-first migrations with SQL Server 2008 but all date properties were created in the database as <code>datetime</code> columns - not <code>datetime2</code>.</p>
  
  <p>Is it possible to create migration using add-migration that will update all <code>datetime</code> columns in the database? Is there any other easy way to switch to <code>datetime2</code> everywhere? </p>