Table of Contents

Class DbOpContext

Namespace
Tripous.Data
Assembly
Tripous.Data.dll

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

ModuleName string
Store SqlStore
Transaction DbTransaction
TopTable MemTable
CascadeDeletes bool
GenerateSql bool

Properties

CascadeDeletes

Indicates whether deletes should be cascaded to detail tables.

public bool CascadeDeletes { get; }

Property Value

bool

FlatList

The TopTable and all its descendant tables, as a flat list.

public List<MemTable> FlatList { get; }

Property Value

List<MemTable>

MaxDetailLevel

The maximum detail (nesting) level among the tables in FlatList.

public int MaxDetailLevel { get; }

Property Value

int

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

string

OidIsAfter

Returns true if Oids are needed after commiting a row to the database

public bool OidIsAfter { get; }

Property Value

bool

OidIsBefore

Returns true if Oids are needed before commiting a row to the database

public bool OidIsBefore { get; }

Property Value

bool

Store

The SqlStore this context operates with.

public SqlStore Store { get; }

Property Value

SqlStore

TopTable

The top-level MemTable of the data tree this context operates on.

public MemTable TopTable { get; }

Property Value

MemTable

Transaction

The database transaction this context operates under.

public DbTransaction Transaction { get; }

Property Value

DbTransaction