Linq To Sql - SQL Default Constraint Problem

后端 未结 2 614
别跟我提以往
别跟我提以往 2021-01-19 12:19

I have a USER table in database. The table has a RegistrationDate column which has a default constraint as GETDATE().

When using LINQ, I don\'t provide any data for

2条回答
  •  逝去的感伤
    2021-01-19 13:19

    Set Auto Generated Value property to true in the designer.

    Or IsDbGenerated="true" in .dbml file.

提交回复
热议问题