C# Class JustPressPlay.Models.Repositories.UnitOfWork

Inheritance: IDisposable, IUnitOfWork
ファイルを表示 Open project: RIT-MAGIC/JustPressPlay Class Usage Examples

Public Methods

Method 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 method

Dispose this unit of work
public Dispose ( ) : void
return void

Dispose() public method

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

SaveChanges() public method

Saves all database changes for this unit of work
public SaveChanges ( ) : int
return int

UnitOfWork() public method

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