Class DictionaryBaseRecordDataExtensions
Inheritance
DictionaryBaseRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class DictionaryBaseRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<DictionaryBaseTableInfo>)
Declaration
public static DictionaryBaseRecordData FromRecord(this TargetedDataRecord<DictionaryBaseTableInfo> record)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
/* add joins, return fields etc. as you wish */
s.ReturnFields.Add(s.Table.All);
var result = s.Records().Select(r => new { DictionaryBaseItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<DictionaryBaseTableInfo>)
From a TargetedSelect<DictionaryBaseTableInfo>, execute it and return an IEnumerable<DictionaryBaseRecordData> with the results
Declaration
public static IEnumerable<DictionaryBaseRecordData> FromSelect(this TargetedSelect<DictionaryBaseTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(DictionaryBaseRecordData)
Declaration
public static Insert ToInsert(this DictionaryBaseRecordData record)
Parameters
Returns
ToInserts(IEnumerable<DictionaryBaseRecordData>)
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<DictionaryBaseRecordData> records)
Parameters
Returns