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