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