Table of Contents

Class DbOps

Namespace
Tripous.Data
Assembly
Tripous.Data.dll

A helper class that post changes, i.e. INSERT-UPDATE-DELETE, of a single MemTable table or a table tree to the database.

All tables should have the InsertRowSql and the UpdateRowSql of their Sqls defined.

WARNING: Only DataRows that have the Added, Modified or Deleted DataRowState defined are processed.

public static class DbOps
Inheritance
DbOps
Inherited Members

Methods

PostChanges(DbOpContext)

Posts any changes (deletes, updates, inserts) to the database

public static void PostChanges(DbOpContext Context)

Parameters

Context DbOpContext

PostDeletes(DbOpContext)

Processes the DELETE part of a commit

WARNING: DataRows must have the Deleted DataRowState defined.

public static void PostDeletes(DbOpContext Context)

Parameters

Context DbOpContext

PostInserts(DbOpContext)

Processes the INSERT part of a commit

WARNING: DataRows must have the Added DataRowState defined.

public static void PostInserts(DbOpContext Context)

Parameters

Context DbOpContext

PostUpdates(DbOpContext)

Processes the UPDATE part of a commit

WARNING: DataRows must have the Modified DataRowState defined.

public static void PostUpdates(DbOpContext Context)

Parameters

Context DbOpContext