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