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