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