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