OrmLiteTransaction
Assembly: ServiceStack.OrmLite.dll
View Source
Declaration
public class OrmLiteTransaction : IDbTransaction, IHasDbTransaction
Properties
Transaction
View Source
Declaration
public IDbTransaction Transaction { get; set; }
DbTransaction
View Source
Declaration
public IDbTransaction DbTransaction { get; }
Connection
View Source
Declaration
public IDbConnection Connection { get; }
IsolationLevel
View Source
Declaration
public IsolationLevel IsolationLevel { get; }
Methods
Create(IDbConnection, Nullable<IsolationLevel>)
View Source
Declaration
public static OrmLiteTransaction Create(IDbConnection db, IsolationLevel? isolationLevel = null)
Returns
ServiceStack.OrmLite.OrmLiteTransaction
Parameters
Type | Name |
---|---|
IDbConnection | db |
System.Nullable<IsolationLevel> | isolationLevel |
Dispose()
View Source
Declaration
public void Dispose()
Commit()
View Source
Declaration
public void Commit()
Rollback()
View Source
Declaration
public void Rollback()