/// <summary> /// Releases all resources used by the Entities /// </summary> public void Dispose() { if (null != Context) { Context.Dispose(); } }
public void Dispose() { _externalLoginRepository = null; _roleRepository = null; _userRepository = null; _context.Dispose(); }
protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
public virtual void Dispose(bool disposing) { if (!this.isDisposed) { if (disposing) { _context.Dispose(); } } this.isDisposed = true; }
/// <summary> /// Release un managed resources from memeory /// </summary> /// <param name="disposing"></param> public void Dispose(bool disposing) { if (!_disposed) { if (disposing) { _dbContext.Dispose(); } } _disposed = true; }
/// <summary> /// Protected Virtual Dispose method /// </summary> /// <param name="disposing"></param> protected virtual void Dispose(bool disposing) { if (!_disposed) { if (disposing) { _context.Dispose(); } } _disposed = true; }
protected void Dispose(bool disposing) { if (!_disposed) { if (disposing) { _context?.Dispose(); } _disposed = true; } }
public static void Cleanup() { IdentityDbContext.Database.Delete(); EnterpriseSecurityDbContext.Database.Delete(); ListsDbContext.Database.Delete(); IdentityDbContext.Dispose(); EnterpriseSecurityDbContext.Dispose(); ListsDbContext.Dispose(); IdentityDbContext = null; EnterpriseSecurityDbContext = null; ListsDbContext = null; }
public void Dispose() { db.Database.EnsureDeleted(); db.Dispose(); }
public void Dispose() { _database.Dispose(); }
public void Dispose() { _identityDbContext.Dispose(); _OLAP001DbContext.Dispose(); }
protected override void Dispose(bool disposing) { _context.Dispose(); }
public void Dispose() { Context.Dispose(); }
public static void Destroy(IdentityDbContext context) { context.Database.EnsureDeleted(); context.Dispose(); }