Exemple #1
0
 public virtual void Dispose(bool disposing)
 {
     if (!this._disposed)
     {
         if (disposing)
         {
             try
             {
                 if (this._entityContext != null)
                 {
                     this._entityContext.Dispose();
                     this._entityContext = null;
                 }
             }
             catch (ObjectDisposedException)
             {
             }
         }
         this._disposed = true;
     }
 }
Exemple #2
0
 public UnitOfWork(IEntityContextAsync entityContext)
 {
     this._entityContext = entityContext;
 }
Exemple #3
0
 public UnitOfWork()
 {
     this._entityContext = ApplicationDbContext.EntityContext();
 }