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