示例#1
0
 public virtual void Dispose()
 {
     if (_context != null)
     {
         _context.Dispose();
     }
 }
示例#2
0
 public virtual void Dispose(bool disposing)
 {
     if (!this._disposed)
     {
         if (disposing)
         {
             Db.Dispose();
         }
         this._disposed = true;
     }
 }