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