Home
Options

Generated EF Core connection assumes datetime2

Because of the way EF Core (incorrectly IMNSHO) works, datetime2 is assumed for SQL Server columns mapped to C# DateTime.

Is there a way to have the schema generated correctly to map to SQL Server datetime when the column actually contains datetime, or to access HaveColumnType to override the mapping for incorrect columns.

Comments

Sign In or Register to comment.