MySQL · Types · Preloading the schema
ArxPreLoadTableRegister
Definition
- Namespace
ARX.SDK.Services- Package
ARX.SDK
public sealed class ArxPreLoadTableRegisterThe tables a preload reads: one PreLoadTable call per table, with the columns to load, or none for all of them. A mistake is refused on the call that makes it.
Properties
IReadOnlyDictionary<string, IReadOnlyList<string>> Tables { get; }Each registered table and its columns (empty: all of them), in the order registered.
Methods
ArxPreLoadTableRegister PreLoadTable(string table, string[]? columns = null)Registers
table("table"or"schema.table") with the columns to load:nullor[]for every column, a list for only those (the id column is always loaded).Parameter Type Description tablestringThe table to read, as the database names it. columnsstring[]?= nullThe columns to read (the id is always read); null for every column.
Usage
A line from a verified sample; the full, runnable code is on its page.
var tables = new ArxPreLoadTableRegister()Preload the schema at service setup: keys only, data types, Strict, scenario 1
Used in:
- Preload the schema at service setup: keys only, data types, StrictCreate
- Remember resolved tables, or preload themCreate
- Update on a preloaded schema: keys only, data types, StrictUpdate
- Delete on a preloaded schema: keys only, StrictDelete
- Retrieve on a preloaded schema: lookups found, column types, Strict, saved JSONRetrieveMultiple
- Execute on a preloaded, Strict schema: routines aren't covered, tables areExecute