Table of Contents

Class Schema

Namespace
Tripous.Data
Assembly
Tripous.Data.dll

The holder of all schema versions of a certain Schema.

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 class Schema
Inheritance
Schema
Inherited Members
Extension Methods

Constructors

Schema()

Constructor

public Schema()

Properties

ConnectionName

The name of the database connection this schema is applied against.

public string ConnectionName { get; set; }

Property Value

string

Domain

Domain is the name of the register (client code) that has registered the schema.

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

public string Domain { get; set; }

Property Value

string

Versions

The registered versions

public List<SchemaVersion> Versions { get; set; }

Property Value

List<SchemaVersion>

Methods

Exists(int)

True if a schema version item with a specified version is already registered.

public bool Exists(int Version)

Parameters

Version int

Returns

bool

Find(int)

Returns the a schema version item with a specified version, if any else null

public SchemaVersion Find(int Version)

Parameters

Version int

Returns

SchemaVersion

FindOrAdd(int)

Adds a new schema version, if the specified version is not found. Else returns the found version.

public SchemaVersion FindOrAdd(int Version)

Parameters

Version int

Returns

SchemaVersion

ToString()

Returns a string representation of this instance.

public override string ToString()

Returns

string