Class InvoiceEntryRecordDataExtensions
Extension methods to make it easy to fetch InvoiceEntryRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
InvoiceEntryRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class InvoiceEntryRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<InvoiceEntryTableInfo>)
Declaration
public static InvoiceEntryRecordData FromRecord(this TargetedDataRecord<InvoiceEntryTableInfo> 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 { InvoiceEntryItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<InvoiceEntryTableInfo>)
From a TargetedSelect<InvoiceEntryTableInfo>, execute it and return an IEnumerable<InvoiceEntryRecordData> with the results
Declaration
public static IEnumerable<InvoiceEntryRecordData> FromSelect(this TargetedSelect<InvoiceEntryTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
FromSelectAsync(TargetedSelect<InvoiceEntryTableInfo>, CancellationToken)
From a TargetedSelect<InvoiceEntryTableInfo>, execute it and return an IEnumerable<InvoiceEntryRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<InvoiceEntryRecordData> FromSelectAsync(this TargetedSelect<InvoiceEntryTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(InvoiceEntryRecordData, CancellationToken)
Extension methods to make it easy to fetch InvoiceEntryRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this InvoiceEntryRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<InvoiceEntryRecordData>, CancellationToken)
Extension methods to make it easy to fetch InvoiceEntryRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<InvoiceEntryRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
ToRecordData(InvoiceEntryRow)
Extension methods to make it easy to fetch InvoiceEntryRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static InvoiceEntryRecordData ToRecordData(this InvoiceEntryRow row)
Parameters
Returns