Skip to main content

TdxEMFSession Class

A component that allows you to connect to any supported data store, and query/manage its records using entity objects.

Declaration

TdxEMFSession = class(
    TdxEMFCustomSession
)

Remarks

This component is the primary method for the ExpressEntityMapping Framework to interact with data stores. The component does the following:

  • Obtains mapping information from an entity model and validates it against a data store’s schema;

  • Keeps track of objects created using the entity model’s classes and manages their lifetime;

  • Provides methods for object manipulation;

  • Converts object manipulation actions to SQL statements and executes them.

You can use any number of session components simultaneously, each having their own entity model and object cache.

The TdxEMFSession component introduces the CreateSchema procedure and makes the inherited DataProvider and Options properties published.

See Also