Tables

Part of the QSAppContext object, the Tables property provides access to the collection of all registered data tables in the application. Through this property you can obtain an IQSDataTable instance by its logical table name or identifier, allowing you to call all data‑retrieval and modification methods (GetByIdAsync, AddRecordAsync, etc.).

The returned IQSDataTableCollection is initialised once when application loads and keeps updated. Each call to an indexer (e.g., Tables["Customers"]) internally creates and caches the corresponding IQSDataTable object, configured with the correct table name, metadata, and other information.

This property is essential for working with data tables in the Maestro environment, as it provides the main entry point to access and work with all available methods in the IQSDataTable interface .

Declaration

public IQSDataTableCollection Tables => _dataTableCollection;

Property Value

An IQSDataTableCollection instance that holds all available IQSDataTable objects, keyed by their table name.

Example Usage

// Access the Customers table
IQSDataTable customers = QSAppContext.Tables["Customers"];

// Now use any data method
DataTable dt = await customers.GetByIdAsync("00000000-0000-0000-0000-000000000000");