protected override OrderComponent SetPrimaryKeyForExistingRecord(OrderComponent record)
 {
     record.ID = RecordIndex[GetIndexKey(record)].ID;
     return(base.SetPrimaryKeyForExistingRecord(record));
 }
 protected override Tuple <int, string> GetIndexKey(OrderComponent record) => new Tuple <int, string>(record.OrderNumber, record.Component.Name);