Why does EF5 code first use datetime2 when inserting a nullable datetime into the database?

前端 未结 2 644
渐次进展
渐次进展 2020-12-03 18:52

I am saving a Cart object to the database that has a nullable datetime. This is the error I get:

The conversion of a datetime2 data type to a datetime da

2条回答
  •  青春惊慌失措
    2020-12-03 19:15

    The EF Team actually discussed this particular item during one of the design meetings. The decision was to leave the current behavior as is. Here are the meeting notes that can give you more context.

提交回复
热议问题