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

ToInsert(BatchTaskDefinitionRecordData)

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

ToInserts(IEnumerable<BatchTaskDefinitionRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<BatchTaskDefinitionRecordData> records)
Parameters
Type Name Description
IEnumerable<BatchTaskDefinitionRecordData> records
Returns
Type Description
IEnumerable<Insert>
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top