TEntityConnection.Provider Property

Defines the current data provider used for establishing a connection.




property Provider: TDataProvider;


Since EntityDAC is abstracted from the data access layer, direct interaction with the database is handled by specialized component packages such as Devart Data Access Components. A data provider is the specialized class that provides interaction between TEntityConnection and used data access components.

Read the DataProvider property value to access the current data provider instance. Setting the property value can be used to set the current provider at run-time. But in most cases, the ProviderName property is more suitable for setting the current provider because all data providers used in an application are registered by the data provider manager, and available through their names.

To define a database-specific behavior of the current data provider, DialectName and Dialect properties are used.

See Also

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