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