protected override void OnRemoveRow(DomainUser domainUser, DomainRowInfo[] rows, SignatureDateProvider signatureProvider) { this.dataSet.SignatureDateProvider = signatureProvider; try { foreach (var item in rows) { var view = this.views[item.TableName]; if (DomainRowInfo.ClearKey.SequenceEqual(item.Keys) == true) { view.Table.Clear(); } else { CremaDomainUtility.Delete(view, item.Keys); } } this.dataSet.AcceptChanges(); } catch (Exception e) { this.dataSet.RejectChanges(); throw e; } }
protected override void OnRemoveRow(DomainUser domainUser, DomainRowInfo[] rows, SignatureDate signatureDate) { this.template.SignatureDateProvider = new InternalSignatureDateProvider(signatureDate); foreach (var item in rows) { CremaDomainUtility.Delete(this.view, item.Keys); } this.template.AcceptChanges(); }
protected override void OnRemoveRow(DomainUser domainUser, DomainRowInfo[] rows, SignatureDateProvider signatureProvider) { this.template.SignatureDateProvider = signatureProvider; foreach (var item in rows) { CremaDomainUtility.Delete(this.view, item.Keys); } }
protected override DomainRowInfo[] OnRemoveRow(DomainMember domainMember, DomainRowInfo[] rows, SignatureDateProvider signatureProvider) { this.template.SignatureDateProvider = signatureProvider; foreach (var item in rows) { CremaDomainUtility.Delete(this.view, item.Keys); } this.data = null; return(rows); }
protected override void OnRemoveRow(DomainMember domainMember, DomainRowInfo[] rows, SignatureDate signatureDate) { this.dataType.BeginLoadData(); try { foreach (var item in rows) { CremaDomainUtility.Delete(this.view, item.Keys); } } finally { this.dataType.EndLoadData(); } this.dataType.ModificationInfo = signatureDate; this.dataType.AcceptChanges(); }
protected override void OnRemoveRow(DomainUser domainUser, DomainRowInfo[] rows, SignatureDate signatureDate) { foreach (var item in rows.Reverse()) { var view = this.views[item.TableName]; if (DomainRowInfo.ClearKey.SequenceEqual(item.Keys) == true) { view.Table.Clear(); } else { CremaDomainUtility.Delete(view, item.Keys); } this.tables[view].ContentsInfo = signatureDate; } this.dataSet.AcceptChanges(); }
protected override void OnRemoveRow(DomainUser domainUser, DomainRowInfo[] rows, SignatureDateProvider signatureProvider) { this.dataType.SignatureDateProvider = signatureProvider; try { foreach (var item in rows) { CremaDomainUtility.Delete(this.view, item.Keys); } this.dataType.AcceptChanges(); } catch (Exception e) { this.dataType.RejectChanges(); throw e; } }
protected override DomainRowInfo[] OnRemoveRow(DomainMember domainMember, DomainRowInfo[] rows, SignatureDateProvider signatureProvider) { this.dataType.SignatureDateProvider = signatureProvider; try { foreach (var item in rows) { CremaDomainUtility.Delete(this.view, item.Keys); } this.dataType.AcceptChanges(); this.data = null; return(rows); } catch { this.dataType.RejectChanges(); throw; } }