Class SchemaVersion
Represents a version of a database schema.
public class SchemaVersion
- Inheritance
-
SchemaVersion
- Inherited Members
- Extension Methods
Constructors
SchemaVersion()
Constructor
public SchemaVersion()
Properties
StatementsAfter
A list of Sql statements to be executed after this schema execution
public List<string> StatementsAfter { get; set; }
Property Value
StatementsBefore
A list of Sql statements to be executed before this schema execution
public List<string> StatementsBefore { get; set; }
Property Value
Tables
A list of table items.
public List<SchemaItem> Tables { get; set; }
Property Value
Version
Gets or sets the version of the schema.
public int Version { get; set; }
Property Value
Views
A list of view items.
public List<SchemaItem> Views { get; set; }
Property Value
Methods
AddStatementAfter(string)
Adds a statement
public void AddStatementAfter(string SqlText)
Parameters
SqlTextstring
AddStatementBefore(string)
Adds a statement
public void AddStatementBefore(string SqlText)
Parameters
SqlTextstring
AddTable(string)
Adds a table
public void AddTable(string SqlText)
Parameters
SqlTextstring
AddView(string, string)
Adds a view
public void AddView(string Name, string SqlText)
Parameters
Execute(DbConnectionInfo)
Executes the schema. If no connection info is specified then the default connection is used.
CAUTION: This method does NOT record version number in the Db Ini.
public void Execute(DbConnectionInfo ConnectionInfo = null)
Parameters
ConnectionInfoDbConnectionInfo
ToString()
Override
public override string ToString()