Class DbOpContext
Database operation context.
public class DbOpContext
- Inheritance
-
DbOpContext
- Inherited Members
- Extension Methods
Constructors
DbOpContext(string, SqlStore, DbTransaction, MemTable, bool, bool)
Constructor
public DbOpContext(string ModuleName, SqlStore Store, DbTransaction Transaction, MemTable TopTable, bool CascadeDeletes = true, bool GenerateSql = false)
Parameters
ModuleNamestringStoreSqlStoreTransactionDbTransactionTopTableMemTableCascadeDeletesboolGenerateSqlbool
Properties
CascadeDeletes
Indicates whether deletes should be cascaded to detail tables.
public bool CascadeDeletes { get; }
Property Value
FlatList
The TopTable and all its descendant tables, as a flat list.
public List<MemTable> FlatList { get; }
Property Value
MaxDetailLevel
The maximum detail (nesting) level among the tables in FlatList.
public int MaxDetailLevel { get; }
Property Value
ModuleName
WARNING: The ModuleName and a TableName are used in constructing a unique StatementName.
The StatementName is used with the GetNativeSchemaFromTableName(string, string)
so the ModuleName.TableName must construct a unique name because schema DataTables are stored in the SqlCache under that unique name.
public string ModuleName { get; }
Property Value
OidIsAfter
Returns true if Oids are needed after commiting a row to the database
public bool OidIsAfter { get; }
Property Value
OidIsBefore
Returns true if Oids are needed before commiting a row to the database
public bool OidIsBefore { get; }
Property Value
Store
The SqlStore this context operates with.
public SqlStore Store { get; }
Property Value
TopTable
The top-level MemTable of the data tree this context operates on.
public MemTable TopTable { get; }
Property Value
Transaction
The database transaction this context operates under.
public DbTransaction Transaction { get; }