EntityDAC

TCustomContext.Create Constructor

Creates a new instance of the data context component.

Class

TCustomContext

Syntax

constructor Create(AOwner: TComponent); overload; override;

Remarks

The constructor is used to create a new TCustomContext descendant such as TEntityContext at design-time. After creating a data context component instance, it should be configured by setting TCustomContext.Connection, TCustomContext.ModelName, TCustomContext.Options properties etc.

To create a data context component instance and simultaneously associate it with a connection and a meta-model, use overloaded constructors instead.

See Also

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