示例#1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             context.Dispose();
             disposed = true;
         }
     }
 }
 public void Dispose()
 {
     context.Dispose();
 }