/// <summary> /// ctor the Mighty /// </summary> public UnitOfWork(IDataContextResolver <TDataContext> dbContextResolver) { this.DbContextResolver = dbContextResolver; // Multiple units of work for the same context cannot exist this.DbContextResolver.DestroyContext(); }
/// <summary> /// Disposes the object /// </summary> protected virtual void Dispose(bool disposing) { if (IsDisposed) { if (disposing) { this.DbContextResolver = null; } this.IsDisposed = true; } }
/// <summary> /// ctor the Mighty /// </summary> protected EntityRepository(IDataContextResolver dataContextResolver) { this.DataContextResolver = dataContextResolver; }
/// <summary> /// ctor the Mighty /// </summary> public DefaultBrewgrRepository(IDataContextResolver <BrewgrContext> dataContextResolver) : base(dataContextResolver) { }
/// <summary> /// ctor the Mighty /// </summary> public DefaultUnitOfWorkFactory(IDataContextResolver <TDataContext> dataContextResolver) { this.DataContextResolver = dataContextResolver; }
/// <summary> /// ctor the Mighty /// </summary> protected WritableContextRepository(IDataContextResolver dataContextResolver) { this.DataContextResolver = dataContextResolver; }