Пример #1
0
 protected override void DisposeCore()
 {
     _dataContext?.Dispose();
     base.DisposeCore();
 }
 public void Dispose()
 {
     context.Dispose();
 }
 public virtual void Dispose()
 {
     context.Dispose();
 }
 public void Dispose()
 {
     sqlContext.Dispose();
 }
 public static void Destroy(SqlContext context)
 {
     context.Database.EnsureDeleted();
     context.Dispose();
 }
Пример #6
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     _dbContext.Dispose();
 }
Пример #7
0
 public void Dispose()
 {
     _context.Dispose();
     GC.SuppressFinalize(this);
 }
Пример #8
0
 /// <summary>
 /// Disposes of the database connection.
 /// </summary>
 public void Dispose()
 {
     db.Dispose();
 }
Пример #9
0
 public void Dispose()
 {
     Db.Dispose();
     GC.SuppressFinalize(this);
 }