예제 #1
0
 public void Copy()
 {
     CopyData.Clear();
     foreach (var item in Selection.ToList())
     {
         CopyData.Add(item);
     }
 }
예제 #2
0
        public void Clear()
        {
            IndexData      = null;
            PalletData     = null;
            ColumnMeta     = null;
            RecordsData    = null;
            ForeignKeyData = null;
            CommonData     = null;

            _Records?.Clear();
            StringTable?.Clear();
            SparseEntries?.Clear();
            CopyData?.Clear();
        }
예제 #3
0
        public void Clear()
        {
            id_list_data   = null;
            PalletData     = null;
            ColumnMeta     = null;
            RecordsData    = null;
            refData        = null;
            ForeignKeyData = null;
            CommonData     = null;

            _Records?.Clear();
            StringTable?.Clear();
            offset_map_Entries?.Clear();
            CopyData?.Clear();
        }
예제 #4
0
        private IEnumerable <IDBRow> GetCopyRows()
        {
            if (CopyData == null || CopyData.Count == 0)
            {
                yield break;
            }

            // fix temp ids
            _Records = _Records.ToDictionary(x => x.Value.Id, x => x.Value);

            foreach (var copyRow in CopyData)
            {
                IDBRow rec = _Records[copyRow.Value].Clone();
                rec.Data         = rec.Data.Clone();
                rec.Id           = copyRow.Key;
                _Records[rec.Id] = rec;
                yield return(rec);
            }

            CopyData.Clear();
        }