Show / Hide Table of Contents

Class BatchTaskRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<BatchTaskTableInfo>)

From a TargetedDataRecord<BatchTaskTableInfo>, create and populate a BatchTaskRecordData POCO object

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

FromSelect(TargetedSelect<BatchTaskTableInfo>)

From a TargetedSelect<BatchTaskTableInfo>, execute it and return an IEnumerable<BatchTaskRecordData> with the results

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

FromSelectAsync(TargetedSelect<BatchTaskTableInfo>, CancellationToken)

From a TargetedSelect<BatchTaskTableInfo>, execute it and return an IEnumerable<BatchTaskRecordData> with the results

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

ToInsertAsync(BatchTaskRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<BatchTaskRecordData>, CancellationToken)

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

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

ToRecordData(BatchTaskRow)

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

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