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