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