Exemple #1
0
 /// <summary>
 /// Releases all resources used by the Entities
 /// </summary>
 public void Dispose()
 {
     if (null != Context)
     {
         Context.Dispose();
     }
 }
Exemple #2
0
 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;
 }
Exemple #5
0
 /// <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;
 }
Exemple #6
0
 /// <summary>
 /// Protected Virtual Dispose method
 /// </summary>
 /// <param name="disposing"></param>
 protected virtual void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             _context.Dispose();
         }
     }
     _disposed = true;
 }
Exemple #7
0
        protected void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (disposing)
                {
                    _context?.Dispose();
                }

                _disposed = true;
            }
        }
Exemple #8
0
        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;
        }
Exemple #9
0
 public void Dispose()
 {
     db.Database.EnsureDeleted();
     db.Dispose();
 }
Exemple #10
0
 public void Dispose()
 {
     _database.Dispose();
 }
Exemple #11
0
 public void Dispose()
 {
     _identityDbContext.Dispose();
     _OLAP001DbContext.Dispose();
 }
Exemple #12
0
 protected override void Dispose(bool disposing)
 {
     _context.Dispose();
 }
Exemple #13
0
 public void Dispose()
 {
     Context.Dispose();
 }
Exemple #14
0
        public static void Destroy(IdentityDbContext context)
        {
            context.Database.EnsureDeleted();

            context.Dispose();
        }