How to use the default Entity Framework and default date values

后端 未结 8 827
说谎
说谎 2020-12-15 23:53

In my SQL Server database schema I have a data table with a date field that contains a default value of

CONVERT(VARCHAR(10), GETDATE(), 111)
<
8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-16 00:24

    The date field can be mapped to DateTime? only if the column is nullable in the database.

提交回复
热议问题