protected override void Dispose(bool disposing) { AccountDbContext db = new AccountDbContext(); db.Dispose(); base.Dispose(disposing); }
// private object GetService(Type t, object store) // { // object svc = FindService(t); // if (svc == null) // { // svc = Activator.CreateInstance( // t, // store, // Activator.CreateInstance(typeof(TestLogger<>).MakeGenericType(t)) // ); // _svcCache.Add(t.Name, svc); // } // return svc; // } #endregion public void Dispose() { if (_ctx != null) { _ctx.Dispose(); } }
public void Cleanup() { dbctx.Database.EnsureDeleted(); dbctx?.Dispose(); }
public void Dispose() { _db?.Dispose(); }
public void Dispose() { _dbContext?.Dispose(); }
public void Dispose() { AccountDbContext.Dispose(); }