Example #1
0
 /// <summary>
 /// Releases all resources used by the Entities
 /// </summary>
 public void Dispose()
 {
     if (null != Context)
     {
         Context.Dispose();
     }
 }
Example #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;
 }
Example #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;
 }
Example #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;
 }
Example #7
0
        protected void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (disposing)
                {
                    _context?.Dispose();
                }

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

            context.Dispose();
        }