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