EntityDAC

TEntityModelOptions.Usage Property

Specifies when the model is used.

Class

TEntityModelOptions

Syntax

property Usage: TUsageMode default [umDesignTime, umRunTime];

Remarks

The property specifies when the XML model is used.

If the umDesignTime is specified in TEntityModelOptions.Usage, then the meta model becomes accessible at design-time, so properties such as TEntityConnection.DefaultModelName, TEntityContext.ModelName and TEntityTable.TypeName can be configured.

If the umRunTime is specified in TEntityModelOptions.Usage, then the meta model can be used at run-time. For mapping meta model to the entity classes, the special [XmlMapped] class attribute is used. See the XML-mapped entities article for details.

See Also

© 1997-2017 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback