Support for default column values ​​in an Entity Framework custom provider

I am working on a custom entity creator, and I need to add support for the default column values ​​for this provider. When a user uses the entity infrastructure wizard and selects a table that includes columns with default values, these default values ​​are not populated in the entity constructor.

I lost a little where exactly this population should take place. I believe that a suitable place would be to override the GetEdmType method for DbXmlEnabledProviderManifest, but I just don't see how to set the default if that is the right place.

Does anyone have experience writing EF providers that support default values ​​for table columns? How do you implement this?

+2
source share
2 answers

I did not have to work with the default values ​​in EF myself, but came across this for a previous post . Hope this helps.

0
source

, DbXmlEnabledProviderManifest . ( ) , / . EF, , (, , / , ). , - , , . , , / , . , , DefaultValue Property SSDL, . , , EF, , EF , , , .

0

All Articles