Class ConfigRecordDataExtensions
Extension methods to make it easy to fetch ConfigRecordData objects from the database,
using the infrastructure
Inheritance
ConfigRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class ConfigRecordDataExtensions : Object
Methods
FromRecord(TargetedDataRecord<ConfigTableInfo>)
From a TargetedDataRecord<ConfigTableInfo>, create and populate a ConfigRecordData POCO object
Declaration
public static ConfigRecordData FromRecord(this TargetedDataRecord<ConfigTableInfo> 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 { ConfigItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<ConfigTableInfo>)
From a TargetedSelect<ConfigTableInfo>, execute it and return an IEnumerable<ConfigRecordData> with the results
Declaration
public static IEnumerable<ConfigRecordData> FromSelect(this TargetedSelect<ConfigTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(ConfigRecordData)
Extension methods to make it easy to fetch ConfigRecordData objects from the database,
using the infrastructure
Declaration
public static Insert ToInsert(this ConfigRecordData record)
Parameters
Returns
ToInserts(IEnumerable<ConfigRecordData>)
Extension methods to make it easy to fetch ConfigRecordData objects from the database,
using the infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<ConfigRecordData> records)
Parameters
Returns
ToRecordData(ConfigRow)
Extension methods to make it easy to fetch ConfigRecordData objects from the database,
using the infrastructure
Declaration
public static ConfigRecordData ToRecordData(this ConfigRow row)
Parameters
Returns