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