Show / Hide Table of Contents

Class WorkflowInstanceRecordDataExtensions

Extension methods to make it easy to fetch WorkflowInstanceRecordData objects from the database, using the TargetedSelect infrastructure

Inheritance
object
WorkflowInstanceRecordDataExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class WorkflowInstanceRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<WorkflowInstanceTableInfo>)

From a TargetedDataRecord<WorkflowInstanceTableInfo>, create and populate a WorkflowInstanceRecordData POCO object

Declaration
public static WorkflowInstanceRecordData FromRecord(this TargetedDataRecord<WorkflowInstanceTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<WorkflowInstanceTableInfo> record
Returns
Type Description
WorkflowInstanceRecordData
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 { WorkflowInstanceItem = r.FromRecord(), /* fetch other fields here */ });

FromSelect(TargetedSelect<WorkflowInstanceTableInfo>)

From a TargetedSelect<WorkflowInstanceTableInfo>, execute it and return an IEnumerable<WorkflowInstanceRecordData> with the results

Declaration
public static IEnumerable<WorkflowInstanceRecordData> FromSelect(this TargetedSelect<WorkflowInstanceTableInfo> select)
Parameters
Type Name Description
TargetedSelect<WorkflowInstanceTableInfo> select
Returns
Type Description
IEnumerable<WorkflowInstanceRecordData>
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

FromSelectAsync(TargetedSelect<WorkflowInstanceTableInfo>, CancellationToken)

From a TargetedSelect<WorkflowInstanceTableInfo>, execute it and return an IEnumerable<WorkflowInstanceRecordData> with the results

Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<WorkflowInstanceRecordData> FromSelectAsync(this TargetedSelect<WorkflowInstanceTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Type Name Description
TargetedSelect<WorkflowInstanceTableInfo> select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<WorkflowInstanceRecordData>
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

ToInsertAsync(WorkflowInstanceRecordData, CancellationToken)

Extension methods to make it easy to fetch WorkflowInstanceRecordData objects from the database, using the TargetedSelect infrastructure

Declaration
public static Task<Insert> ToInsertAsync(this WorkflowInstanceRecordData record, CancellationToken cancellationToken = default)
Parameters
Type Name Description
WorkflowInstanceRecordData record
CancellationToken cancellationToken
Returns
Type Description
Task<Insert>

ToInsertsAsync(IEnumerable<WorkflowInstanceRecordData>, CancellationToken)

Extension methods to make it easy to fetch WorkflowInstanceRecordData objects from the database, using the TargetedSelect infrastructure

Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<WorkflowInstanceRecordData> records, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerable<WorkflowInstanceRecordData> records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<Insert>

ToRecordData(WorkflowInstanceRow)

Extension methods to make it easy to fetch WorkflowInstanceRecordData objects from the database, using the TargetedSelect infrastructure

Declaration
public static WorkflowInstanceRecordData ToRecordData(this WorkflowInstanceRow row)
Parameters
Type Name Description
WorkflowInstanceRow row
Returns
Type Description
WorkflowInstanceRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top