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