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