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