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