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