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