private void Dispose(bool isDisposing)
 {
     if (!isDisposed && isDisposing)
     {
         if (_instance != null)
         {
             _service.Attach(_instance, _toWhom);
         }
         isDisposed = true;
     }
 }
 protected virtual void Dispose(bool isDisposing)
 {
     if (!isDisposed && isDisposing)
     {
         if (_instance != null)
         {
             _service.Attach(_instance, _toWhom);
         }
         isDisposed = true;
     }
 }
Пример #3
0
 public static void Attach <T>(this RelationModel model, T ins)
 {
     service.Attach <T>(ins, model);
 }