protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         context.Dispose();
     }
     base.Dispose(disposing);
 }
示例#2
0
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             db.Dispose();
         }
     }
     this.disposed = true;
 }