Show / Hide Table of Contents

Class BatchTaskDefinitionRecordDataExtensions

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

Inheritance
Object
BatchTaskDefinitionRecordDataExtensions
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class BatchTaskDefinitionRecordDataExtensions : Object

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();

ToInsert(BatchTaskDefinitionRecordData)

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

Declaration
public static Insert ToInsert(this BatchTaskDefinitionRecordData record)
Parameters
Type Name Description
BatchTaskDefinitionRecordData record
Returns
Type Description
Insert

ToInserts(IEnumerable<BatchTaskDefinitionRecordData>)

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

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<BatchTaskDefinitionRecordData> records)
Parameters
Type Name Description
IEnumerable<BatchTaskDefinitionRecordData> records
Returns
Type Description
IEnumerable<Insert>

ToRecordData(BatchTaskDefinitionRow)

Extension methods to make it easy to fetch BatchTaskDefinitionRecordData objects from the database, using the 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