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