C# Class JustPressPlay.Models.Repositories.UnitOfWork

Inheritance: IDisposable, IUnitOfWork
Afficher le fichier Open project: RIT-MAGIC/JustPressPlay Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Dispose this unit of work

Dispose ( bool disposing ) : void

Handles disposing the entity framework DB context

SaveChanges ( ) : int

Saves all database changes for this unit of work

UnitOfWork ( ) : System

Creates a new unit of work for the various database repositories

Method Details

Dispose() public méthode

Dispose this unit of work
public Dispose ( ) : void
Résultat void

Dispose() public méthode

Handles disposing the entity framework DB context
public Dispose ( bool disposing ) : void
disposing bool Are we disposing?
Résultat void

SaveChanges() public méthode

Saves all database changes for this unit of work
public SaveChanges ( ) : int
Résultat int

UnitOfWork() public méthode

Creates a new unit of work for the various database repositories
public UnitOfWork ( ) : System
Résultat System