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