public void Delete() { using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required)) { SqlDelete(); if (ShareSet != null) { ShareSet.Delete(); } ts.Complete(); } }
public void Update() { Valide(); using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required)) { SqlUpdate(); if (ShareSet != null) { ShareSet.Update(); } ts.Complete(); } }