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