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