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