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