Use with the Code First Entity Framework
In This Topic
Version 6.1 of XdsObjects has been designed specifically to allow all the commonly used objects to be persisted to a database directly by using the Code Forst Entity framework. This has required some careful design decisions, as below:
-
All Enum properties have been duplicated to an equivalent integer property -which can be used for getting or setting the property. They have been given the name of the property with "AsInt" appended.
-
Many other properties (including Enums) need to be excluded as they are not compatible with the Code First framework, but in order to give develoeprs the most flexibility (especially if the framework evelves, these have not been specifically excluded from using attributes. This must therefore be done in the client programs as shown in our exmplae registry.