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