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