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