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