Contents tagged with DBML
-
Linq To SQL: Behaviour for table field which is NotNull and having Default value or binding
I found this something interesting while wandering over community which I would like to share. The post is whole about: DBML is not considering the table field's "Default value or Binding" setting which is a NotNull. I mean the field which can not be null but having default value set needs to be set IsDbGenerated = true in DBML file explicitly.
Consider this situation: There is a simple tblEmployee table with below structure: