Show / Hide Table of Contents

Class BatchTaskDefinitionRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<BatchTaskDefinitionTableInfo>)

From a TargetedDataRecord<BatchTaskDefinitionTableInfo>, create and populate a BatchTaskDefinitionRecordData POCO object

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

FromSelect(TargetedSelect<BatchTaskDefinitionTableInfo>)

From a TargetedSelect<BatchTaskDefinitionTableInfo>, execute it and return an IEnumerable<BatchTaskDefinitionRecordData> with the results

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

FromSelectAsync(TargetedSelect<BatchTaskDefinitionTableInfo>, CancellationToken)

From a TargetedSelect<BatchTaskDefinitionTableInfo>, execute it and return an IEnumerable<BatchTaskDefinitionRecordData> with the results

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

ToInsertAsync(BatchTaskDefinitionRecordData, CancellationToken)

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

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

ToInsertsAsync(IEnumerable<BatchTaskDefinitionRecordData>, CancellationToken)

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

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

ToRecordData(BatchTaskDefinitionRow)

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

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