Пример #1
0
        public EntityRow Append(object[] values = null)
        {
            EntityRow row = new EntityRow(this, values);

            Append(row);
            return(row);
        }
Пример #2
0
        // 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);
        }
Пример #3
0
        // 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);
        }
Пример #4
0
 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];
     }
 }