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