C# Class Infrastructure.Data.UnitOfWork

Inheritance: IUnitOfWork, IDisposable
ファイルを表示 Open project: huyrua/efprs

Public Methods

Method Description
BeginTransaction ( ) : void
BeginTransaction ( IsolationLevel isolationLevel ) : void
CommitTransaction ( ) : void
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

RollBackTransaction ( ) : void
SaveChanges ( ) : void
SaveChanges ( SaveOptions saveOptions ) : void
UnitOfWork ( DbContext context ) : System

Private Methods

Method Description
Dispose ( bool disposing ) : void

Disposes off the managed and unmanaged resources used.

OpenConnection ( ) : void
ReleaseCurrentTransaction ( ) : void

Releases the current transaction

Method Details

BeginTransaction() public method

public BeginTransaction ( ) : void
return void

BeginTransaction() public method

public BeginTransaction ( IsolationLevel isolationLevel ) : void
isolationLevel IsolationLevel
return void

CommitTransaction() public method

public CommitTransaction ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

RollBackTransaction() public method

public RollBackTransaction ( ) : void
return void

SaveChanges() public method

public SaveChanges ( ) : void
return void

SaveChanges() public method

public SaveChanges ( SaveOptions saveOptions ) : void
saveOptions SaveOptions
return void

UnitOfWork() public method

public UnitOfWork ( DbContext context ) : System
context DbContext
return System