Show / Hide Table of Contents

Class WorkflowInstanceRecordDataExtensions

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

Inheritance
Object
WorkflowInstanceRecordDataExtensions
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class WorkflowInstanceRecordDataExtensions : Object

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();

ToInsert(WorkflowInstanceRecordData)

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

Declaration
public static Insert ToInsert(this WorkflowInstanceRecordData record)
Parameters
Type Name Description
WorkflowInstanceRecordData record
Returns
Type Description
Insert

ToInserts(IEnumerable<WorkflowInstanceRecordData>)

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

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<WorkflowInstanceRecordData> records)
Parameters
Type Name Description
IEnumerable<WorkflowInstanceRecordData> records
Returns
Type Description
IEnumerable<Insert>

ToRecordData(WorkflowInstanceRow)

Extension methods to make it easy to fetch WorkflowInstanceRecordData objects from the database, using the 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