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