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