public EntityRow Append(object[] values = null) { EntityRow row = new EntityRow(this, values); Append(row); return(row); }
// Add By Sean public bool Remove(EntityRow row) { bool t = Rows.Remove(row); NotifyCollectionChangedEventArgs e = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, row, Rows.Count - 1); OnCollectionChanged(e); return(t); }
// Add By Sean public void Append(EntityRow row) { row.Table = this; Rows.Add(row); NotifyCollectionChangedEventArgs e = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, row, Rows.Count - 1); OnCollectionChanged(e); }
public void CopyItermArrayTo(EntityRow targetRow) { if (ItemArray.Length != targetRow.ItemArray.Length) { throw new Exception("EntityRowTransaction.Restore()"); } for (int i = 0; i < targetRow.ItemArray.Length; i++) { targetRow[i] = this[i]; } }