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