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