コード例 #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _context.Dispose();
     }
 }
コード例 #2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
コード例 #3
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _dbContext.Dispose();
     }
     base.Dispose(disposing);
 }
コード例 #4
0
 /// <summary>
 /// Releases all resource used by the <see cref="T:Calculator.DALC.Repositories.OperationRepository"/> object.
 /// </summary>
 /// <remarks>Call <see cref="Dispose"/> when you are finished using the
 /// <see cref="T:Calculator.DALC.Repositories.OperationRepository"/>. The <see cref="Dispose"/> method leaves
 /// the <see cref="T:Calculator.DALC.Repositories.OperationRepository"/> in an unusable state. After calling
 /// <see cref="Dispose"/>, you must release all references to the
 /// <see cref="T:Calculator.DALC.Repositories.OperationRepository"/> so the garbage collector can reclaim the
 /// memory that the <see cref="T:Calculator.DALC.Repositories.OperationRepository"/> was occupying.</remarks>
 public void Dispose()
 {
     _context.Dispose();
 }