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; } }
public static void Attach <T>(this RelationModel model, T ins) { service.Attach <T>(ins, model); }