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