Show / Hide Table of Contents

Class KbWorkflowRecordDataExtensions

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

Inheritance
object
KbWorkflowRecordDataExtensions
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 KbWorkflowRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<KbWorkflowTableInfo>)

From a TargetedDataRecord<KbWorkflowTableInfo>, create and populate a KbWorkflowRecordData POCO object

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

FromSelect(TargetedSelect<KbWorkflowTableInfo>)

From a TargetedSelect<KbWorkflowTableInfo>, execute it and return an IEnumerable<KbWorkflowRecordData> with the results

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

FromSelectAsync(TargetedSelect<KbWorkflowTableInfo>, CancellationToken)

From a TargetedSelect<KbWorkflowTableInfo>, execute it and return an IEnumerable<KbWorkflowRecordData> with the results

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

ToInsertAsync(KbWorkflowRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<KbWorkflowRecordData>, CancellationToken)

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

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

ToRecordData(KbWorkflowRow)

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

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