Class KbWorkflowAccessRecordDataExtensions
Extension methods to make it easy to fetch KbWorkflowAccessRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
KbWorkflowAccessRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class KbWorkflowAccessRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<KbWorkflowAccessTableInfo>)
Declaration
public static KbWorkflowAccessRecordData FromRecord(this TargetedDataRecord<KbWorkflowAccessTableInfo> 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 { 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
Returns
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
Returns
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
Returns
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
Returns
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
Returns