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