Exemple #1
0
 public DatumFactory()
 {
     TablesDatum.Add(TablesID.COUNTRY, CreateEmptyDatum <Country>);
     TablesDatum.Add(TablesID.CURRENCY, CreateEmptyDatum <Currency>);
     TablesDatum.Add(TablesID.INCOTERM, CreateEmptyDatum <Incoterm>);
     TablesDatum.Add(TablesID.PLACE, CreateEmptyDatum <Place>);
     TablesDatum.Add(TablesID.PRODUCT, CreateEmptyDatum <Product>);
     TablesDatum.Add(TablesID.SHARED_TEXT, CreateEmptyDatum <SharedText>);
     TablesDatum.Add(TablesID.SPOT_VALUE, CreateEmptyDatum <SpotValue>);
     TablesDatum.Add(TablesID.SUPPLIER, CreateEmptyDatum <DataSupplier>);
     TablesDatum.Add(TablesID.UNIT, CreateEmptyDatum <Unit>);
     TablesDatum.Add(TablesID.VALUE_CONTEXT, CreateEmptyDatum <ValueContext>);
 }
Exemple #2
0
 public DataRowFactory()
 {
     TablesDatum[InternalTablesID.TR_LABEL]      = CreateEmptyDatum <TRLabel>;
     TablesDatum[InternalTablesID.TR_SPOT_VALUE] = CreateEmptyDatum <TR.SpotValue>;
     TablesDatum.Add(TablesID.COUNTRY, CreateEmptyDatum <CountryRow>);
     TablesDatum.Add(TablesID.CURRENCY, CreateEmptyDatum <CurrencyRow>);
     TablesDatum.Add(TablesID.INCOTERM, CreateEmptyDatum <IncotermRow>);
     TablesDatum.Add(TablesID.PLACE, CreateEmptyDatum <PlaceRow>);
     TablesDatum.Add(TablesID.PRODUCT, CreateEmptyDatum <ProductRow>);
     TablesDatum.Add(TablesID.SHARED_TEXT, CreateEmptyDatum <SharedTextRow>);
     TablesDatum.Add(TablesID.SPOT_VALUE, CreateEmptyDatum <SpotValueRow>);
     TablesDatum.Add(TablesID.SUPPLIER, CreateEmptyDatum <DataSupplierRow>);
     TablesDatum.Add(TablesID.UNIT, CreateEmptyDatum <UnitRow>);
     TablesDatum.Add(TablesID.VALUE_CONTEXT, CreateEmptyDatum <ValueContextRow>);
 }
Exemple #3
0
 public IDataRow CreateDatum(uint tableID) => TablesDatum[tableID]();