示例#1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         db?.Dispose();
     }
 }
示例#2
0
 protected override void DisposeCore()
 {
     if (schoolContext != null)
     {
         schoolContext.Dispose();
     }
 }
示例#3
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
 protected virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             context.Dispose();
         }
     }
     this.disposed = true;
 }
示例#5
0
 public void Dispose()
 {
     _schoolDbContextSut?.Dispose();
 }
示例#6
0
 public void Dispose() => _db.Dispose();
 public void Dispose()
 {
     _testController.Dispose();
     _dbContext.Database.CloseConnection();
     _dbContext.Dispose();
 }
示例#8
0
 public void Dispose()
 {
     _context.Dispose();
 }
示例#9
0
 public void Dispose()
 {
     _db?.Dispose();
     _connection?.Dispose();
 }