I\'m using the DbContext and Code First APIs introduced with Entity Framework 4.1.
The data model uses basic data types such as string
My solution was to switch all datetime columns to datetime2, and use datetime2 for any new columns. In other words make EF use datetime2 by default. Add this to the OnModelCreating method on your context:
modelBuilder.Properties().Configure(c => c.HasColumnType("datetime2"));
That will get all the DateTime and DateTime? properties on all your entities.