stormrefa.blogg.se

Ef select to new dto with icollections
Ef select to new dto with icollections








If it is set to True, WCF Data Contract attributes will be generated. If it is set to True, DTO class constructors are generated. If the dependent class does not have a primary key, the navigation property is a collection of the existing DTO class (for example, List). If the primary key of the dependent class consists of several properties, the navigation property is a collection of new DTO class objects (for example, List), that contain only the primary key properties of the dependent class.

ef select to new dto with icollections

If the dependent class has a simple primary key that consists of a single property, the navigation property is a collection of primitive type elements (for example, List), which are the primary key values of the dependent class. If it is set to False, the navigation properties for DTO classes are generated only for (*) association ends. These properties are generated as single DTO Objects (for a (0.1) or (1) association end) or collections of DTO objects (for a (*) association end). If it is set to True, navigation properties for DTO classes are generated on any association end. If this property is set, when generating a DTO class name, the value of this property is added to the name as a suffix.

ef select to new dto with icollections ef select to new dto with icollections

If this property is set, when generating a DTO class name, the value of this property is added to the name as a prefix. Otherwise, if your model contain non-generic collections, set the Generate Converters template property to False. To create a model with only generic collections, make sure the Default Collection Generic check box on the Model Properties page of Create Model Wizard is selected (it is selected by default). All the NHibernate collections must be generic if you want to generate converters.










Ef select to new dto with icollections