'Is there a way to set the default values for columns in tables using Entity Framework 6 that carries over to a new DB context
I have an existing database which is being used as a template and a
new context is created by passing a new connection string.
The template database has default values set in SQL Server and in the .edmx diagram; however, the default values do not carry over to the newly created context. I've tried decorating my classes to add default value and I've implemented constructors for classes to initialise the variables. Is there any way to carry over the default values to a new context?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
