27 TableName = tableName;
34 public int TableCount {
43 var rowE = table.GetEnumerator();
45 while (rowE.MoveNext()) {
46 int rowIndex = rowE.Current.RowId.RowNumber;
47 var obName = table.GetValue(rowIndex, 1);
48 if (obName.Value.ToString().Equals(name.
Name)) {
49 var obSchema = table.GetValue(rowIndex, 0);
50 if (obSchema.Value.ToString().Equals(name.
ParentName)) {
67 var rowE = table.GetEnumerator();
69 while (rowE.MoveNext()) {
70 int rowIndex = rowE.Current.RowId.RowNumber;
72 var obSchema = table.GetValue(rowIndex, 0);
73 var obName = table.GetValue(rowIndex, 1);
80 throw new Exception(
"Out of bounds.");
83 public abstract TableInfo GetTableInfo(
int offset);
85 public abstract string GetTableType(
int offset);
91 if (name.
Equals(TableName))
94 return FindByName(name) != -1;
97 public abstract ITable GetTable(
int offset);
Defines the contract to access the data contained into a table of a database.
override string ToString()
ObjectName GetTableName(int offset)
Gets the name of the table at the given index in this container.
The system implementation of a transaction model that handles isolated operations within a database c...
Describes the name of an object within a database.
override bool Equals(object obj)
SystemTableContainer(ITransaction transaction, ObjectName tableName)
A container for any system tables that are generated from information inside the database engine...
int FindByName(ObjectName name)
Finds the index in this container of the given table by its name.
bool ContainsTable(ObjectName name)
Checks if a table with the given name is contained in the current context.
string Name
Gets the name of the object being referenced.
The simplest implementation of a transaction.
Defines the metadata properties of a table existing within a database.