Table of Contents

Class Schemas

Namespace
Tripous.Data
Assembly
Tripous.Data.dll

The registry of database schemas.

A Schema has a unique domain name and a connection name.

The Domain could be System, Application, or the unique identifier name of an external plugin.

The ConnectionName connection name, used in creating the relevant SqlStore instance that executes the schema.

A Schema has also a list of SchemaVersion items.

A SchemaVersion item has an integer version, and collections of SchemaItem items for tables and views, along with collections of statements to be executed before and after the schema version is executed.

public static class Schemas
Inheritance
Schemas
Inherited Members

Properties

List

The list of registered schemas

public static List<Schema> List { get; }

Property Value

List<Schema>

Methods

Execute()

Executes schemas, that is creates tables etc.

public static void Execute()

Exists(string, string)

Returns true if finds a schema registered under a specified Domain name, else false.

public static bool Exists(string Domain, string ConnectionName)

Parameters

Domain string
ConnectionName string

Returns

bool

Find(string, string)

Returns a schema registered under a specified Domain name, if any, else null.

public static Schema Find(string Domain, string ConnectionName)

Parameters

Domain string
ConnectionName string

Returns

Schema

FindOrAdd(string, string)

Finds and returns a schema under a specified Domain and Connection name.

If the schema does not exist, then it adds the schema.

public static Schema FindOrAdd(string Domain, string ConnectionName)

Parameters

Domain string
ConnectionName string

Returns

Schema

GetApplicationSchema()

Returns the schema registered under the Domain Application and the Default Connection.

public static Schema GetApplicationSchema()

Returns

Schema

GetSystemSchema()

Returns the schema registered under the Domain System and the Default Connection.

public static Schema GetSystemSchema()

Returns

Schema