Skip to main content

TdxEMFSession.CreateSchema(TClass[]) Method

Creates a data store’s schema, checks if it matches the entity model, and adds missing data store tables and columns.

Declaration

procedure CreateSchema(const AClasses: array of TClass); overload;

Parameters

Name Type
AClasses TClass

Remarks

This procedure accepts one or more entity classes whose declarations are checked against the connected data store’s schema. When using class inheritance, you can omit listing all entity classes in a hierarchy (starting from base classes) and list only final descendants, because they are sufficient for the CreateSchema procedure to build an entire hierarchy tree.

See Also