Show / Hide Table of Contents

Class KbWorkflowAccessRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<KbWorkflowAccessTableInfo>)

From a TargetedDataRecord<KbWorkflowAccessTableInfo>, create and populate a KbWorkflowAccessRecordData POCO object

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

FromSelect(TargetedSelect<KbWorkflowAccessTableInfo>)

From a TargetedSelect<KbWorkflowAccessTableInfo>, execute it and return an IEnumerable<KbWorkflowAccessRecordData> with the results

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

FromSelectAsync(TargetedSelect<KbWorkflowAccessTableInfo>, CancellationToken)

From a TargetedSelect<KbWorkflowAccessTableInfo>, execute it and return an IEnumerable<KbWorkflowAccessRecordData> with the results

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

ToInsertAsync(KbWorkflowAccessRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<KbWorkflowAccessRecordData>, CancellationToken)

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

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

ToRecordData(KbWorkflowAccessRow)

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

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