C# Class Infrastructure.Data.EntityFramework.Lab.UnitOfWork

Inheritance: IUnitOfWork
Afficher le fichier Open project: huyrua/efprs

Méthodes publiques

Méthode 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
Save ( ) : void

Save temporary change with transaction

Save ( SaveOptions saveOptions ) : void

Directly save change without using begin transaction with saving option

SaveChanges ( ) : void

Directly save change without using begin transaction

SaveChanges ( SaveOptions saveOptions ) : void

Directly save change without using begin transaction with saving option

UnitOfWork ( System.Data.DbContext context ) : System

Private Methods

Méthode 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 méthode

public BeginTransaction ( ) : void
Résultat void

BeginTransaction() public méthode

public BeginTransaction ( IsolationLevel isolationLevel ) : void
isolationLevel IsolationLevel
Résultat void

CommitTransaction() public méthode

public CommitTransaction ( ) : void
Résultat void

Dispose() public méthode

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

RollBackTransaction() public méthode

public RollBackTransaction ( ) : void
Résultat void

Save() public méthode

Save temporary change with transaction
public Save ( ) : void
Résultat void

Save() public méthode

Directly save change without using begin transaction with saving option
public Save ( SaveOptions saveOptions ) : void
saveOptions SaveOptions
Résultat void

SaveChanges() public méthode

Directly save change without using begin transaction
public SaveChanges ( ) : void
Résultat void

SaveChanges() public méthode

Directly save change without using begin transaction with saving option
public SaveChanges ( SaveOptions saveOptions ) : void
saveOptions SaveOptions
Résultat void

UnitOfWork() public méthode

public UnitOfWork ( System.Data.DbContext context ) : System
context System.Data.DbContext
Résultat System