Entity Framework 4.3 Code First Cannot Create Datetime2?
I have my database model configured to use the datetime2 format instead of just datetime. When the database is generated all date columns are datetime and not datetime2. Here is my column configuration code; Property(a => a.LastOpened) .HasColumnOrder(++index) .HasColumnType("datetime2") .HasPrecision(0) .IsRequired(); I can swear that this worked in the earlier version of EF such as 4.1 but I don't understand why it isn't working now. I am connecting to SQL Server 2008 R2... Any help would be appreciated! Thank You! From the ADO.NET team blog : Known Issues [...] Not all hard coded column