Skip to main content

TdxAutoCreateOption Enum

Enumerates options for the Options.AutoCreate property exposed by data providers (TdxEMFFireDACDataProvider and TdxEMFADODataProvider).

Declaration

TdxAutoCreateOption = (
    None,
    DatabaseAndSchema,
    SchemaOnly,
    SchemaAlreadyExists
);

Members

Name
None
DatabaseAndSchema
SchemaOnly
SchemaAlreadyExists

Remarks

Values include:

Value Description
DatabaseAndSchema The data provider attempts to create a database if it doesn’t exist. It also creates or updates a database schema to match the entity model (i.e., its runtime type information, also called RTTI).
SchemaOnly The data provider only creates or updates a database schema to match the entity model.
None The data provider does not create a database or update its schema, but checks if the schema matches the entity model. Otherwise, the data provider raises the EdxSchemaCorrectionNeededException.
SchemaAlreadyExists The data provider neither updates a database schema nor checks if it matches the entity model. This option suppresses the EdxSchemaCorrectionNeededException, but a database error may occur during data operations if the schema is not compatible with the entity model.

Note

TdxAutoCreateOption is a scoped enumeration type. Use the type name together with a scope resolution token (. in Delphi or :: in C++Builder) followed by an enumeration value to refer to this value. For example, use TdxAutoCreateOption.DatabaseAndSchema (in Delphi) or TdxAutoCreateOption::DatabaseAndSchema (in C++Builder) to refer to the DatabaseAndSchema value in code.

See Also