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