Show / Hide Table of Contents

Class ScheduledTaskRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ScheduledTaskTableInfo>)

From a TargetedDataRecord<ScheduledTaskTableInfo>, create and populate a ScheduledTaskRecordData POCO object

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

FromSelect(TargetedSelect<ScheduledTaskTableInfo>)

From a TargetedSelect<ScheduledTaskTableInfo>, execute it and return an IEnumerable<ScheduledTaskRecordData> with the results

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

FromSelectAsync(TargetedSelect<ScheduledTaskTableInfo>, CancellationToken)

From a TargetedSelect<ScheduledTaskTableInfo>, execute it and return an IEnumerable<ScheduledTaskRecordData> with the results

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

ToInsertAsync(ScheduledTaskRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<ScheduledTaskRecordData>, CancellationToken)

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

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

ToRecordData(ScheduledTaskRow)

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

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