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