C# Класс Mono.Data.Sqlite.Orm.SqliteExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
CreateSavepoint ( this transaction ) : string

Saves a point in a transaction using a random name.

CreateSavepoint ( this transaction, string savepoint ) : void

Saves a point in a transaction using the given savepoint name.

Matches ( this column, string match ) : bool
ReleaseSavepoint ( this transaction, string savepoint ) : void

This causes all savepoints back to and including the most recent savepoint with a matching name to be removed from the transaction stack. It does not cause any changes to be written to the database file, but merely removes savepoints from the transaction stack such that it is no longer possible to rollback to those savepoints.

RollbackSavepoint ( this transaction, string savepoint ) : void

Reverts the state of the database back to what it was just after the corresponding savepoint. This does not cancel the transaction, but all intervening savepoints are canceled.

Приватные методы

Метод Описание
EnsureInProgress ( SqliteTransaction transaction ) : void

Описание методов

CreateSavepoint() публичный статический Метод

Saves a point in a transaction using a random name.
public static CreateSavepoint ( this transaction ) : string
transaction this
Результат string

CreateSavepoint() публичный статический Метод

Saves a point in a transaction using the given savepoint name.
public static CreateSavepoint ( this transaction, string savepoint ) : void
transaction this
savepoint string /// The savepoint name to use. ///
Результат void

Matches() публичный статический Метод

public static Matches ( this column, string match ) : bool
column this
match string
Результат bool

ReleaseSavepoint() публичный статический Метод

This causes all savepoints back to and including the most recent savepoint with a matching name to be removed from the transaction stack. It does not cause any changes to be written to the database file, but merely removes savepoints from the transaction stack such that it is no longer possible to rollback to those savepoints.
public static ReleaseSavepoint ( this transaction, string savepoint ) : void
transaction this
savepoint string /// The savepoint name to release. ///
Результат void

RollbackSavepoint() публичный статический Метод

Reverts the state of the database back to what it was just after the corresponding savepoint. This does not cancel the transaction, but all intervening savepoints are canceled.
public static RollbackSavepoint ( this transaction, string savepoint ) : void
transaction this
savepoint string The savepoint name to rollback to.
Результат void