Extended Properties

Extended Properties tabs allow enhancing sets of properties for model objects. If necessary, you can add a property set of the specified type for the model objects mentioned below.

Then with the help of the Properties window, you can define Extended Properties values for each particular object and use this value where necessary. For example, during code generation it can be used by code generation template.

Association

Allows adding/removing extended properties for an association of the model. If the model contains the Data Transfer Object template, the GenerateDTO template-defined property is added, and it cannot be removed or edited. To add a custom property, click the Add button and edit its name, type and default value.

Class

Allows adding/removing extended properties for a class of the model. To add a custom property, click the Add button and edit its name, type and default value. The following properties are template-defined and can't be removed or edited: ConstructorModifier, DisplayColumn, DoNotGenerateDataContractAttribute, DoNotGenerateDefaultConstructor, DoNotSerializableAttribute, DoNotImplementClonable, DoNotSerialize, EntityBase, GenerateDTO (this property is added to the Extended properties if the model contains the Data Transfer Object template), GenerateRepository (this property is added to the Extended properties if the model contains the Repository and Unit of Work template), GenerateController (this property is added to the Extended properties if the model contains the MVC Controller template), GenerateView (this property is added to the Extended properties if the model contains the MVC View Advanced template), MetaTypeName, MetaTypeName, RecordId, Scafford, TableName.

Complex Type

Allows adding/removing extended properties for a class of the model. To add a custom property, click the Add button and edit its name, type and default value. The following properties are template-defined and can't be removed or edited: ComplexTypeBase, ConstructorModifier, DoNotGenerateDefaultConstructor, GenerateDTO (this property is added to the Extended properties if the model contains the Data Transfer Object template), RecordType.

Context Model

Allows adding extended properties for the context of the model. To add a custom property, click the Add button and edit its name, type and default value. The following properties are template-defined and can't be removed or edited: ComplexTypeBase, ContextBase, DoNotGenerateConstructorWithDbContextOptionsArgument, DoNotGenerateDefaultConstructor, EntityBase, UseGenericDbContextOptionsConstructorArgument.

Enum Type

Allows adding/removing extended properties for an enumerated type of the model. To add a custom property, click the Add button and edit its name, type and default value. The following properties are template-defined and can't be removed or edited: DoNotGenerateDataContractAttribute, DoNotSerialize.

Enum Type Member

Allows adding/removing extended properties for an enum type member of the model. To add a custom property, click the Add button and edit its name, type and default value. The following properties are template-defined and can't be removed or edited: DoNotGenerateDataMemberAttribute.

Method

Allows adding/removing extended properties for a method of the model. To add a custom property, click the Add button and edit its name, type and default value. The following properties are template-defined and can't be removed or edited: DirectCall, GenerateAsync.

Property

Allows adding/removing extended properties for a class property in the model. To add a custom property, click the Add button and edit its name, type and default value. The following properties are template-defined and can't be removed or edited: DisplayFormat, DoNotGenerateDataMemberAttribute, DoNotGenerateMapping, DoNotSerialize, FilterUIHint, GenerateDTO (this property is added to the Extended properties if the model contains the Data Transfer Object template), Scaffold, SerializationName, UIHint.

Relation Property

Allows adding extended properties for the relation property of the model. To add a custom property, click the Add button and edit its name, type and default value. The following properties are template-defined and can't be removed or edited: DoNotGenerateDataMemberAttribute, DoNotSerialize, GenerateDTO (this property is added to the Extended properties if the model contains the Data Transfer Object template), SerializationName.

 


Send feedback on this topic

© 2008 - 2024 Devart. All rights reserved.