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