Hi,
I would like to fech default values from collumns in db and apply it to properties (constructor).
Is this possible? how?
Thanks
Fetch default values from DB
Re: Fetch default values from DB
You are using Database First approach with Devart Entity Model (*.edml), aren't you?
When adding a table to the model, Default Value of StorageColumn in SSDL and Default Value of EntityProperty in CSDL are initialized with the default value of the column in database.
When adding a table to the model, Default Value of StorageColumn in SSDL and Default Value of EntityProperty in CSDL are initialized with the default value of the column in database.
-
- Posts: 41
- Joined: Fri 12 Apr 2013 19:05
Re: Fetch default values from DB
Hi,
yes.. I am using database first aproach with entity framework;
However when adding tables fro sql where some collumns have default values applied... it is not replicated on model side.
thanks
yes.. I am using database first aproach with entity framework;
However when adding tables fro sql where some collumns have default values applied... it is not replicated on model side.
thanks
Re: Fetch default values from DB
Please specify:
1) the name and version of your target database server
2) the DDL script of a sample table for reproducing the issue
1) the name and version of your target database server
2) the DDL script of a sample table for reproducing the issue