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();
FromSelectAsync(TargetedSelect<InvoiceSumTableInfo>, CancellationToken)
From a TargetedSelect<InvoiceSumTableInfo>, execute it and return an IEnumerable<InvoiceSumRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<InvoiceSumRecordData> FromSelectAsync(this TargetedSelect<InvoiceSumTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(InvoiceSumRecordData, CancellationToken)
Extension methods to make it easy to fetch InvoiceSumRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this InvoiceSumRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<InvoiceSumRecordData>, CancellationToken)
Extension methods to make it easy to fetch InvoiceSumRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<InvoiceSumRecordData> records, CancellationToken cancellationToken = default)
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