Show / Hide Table of Contents

Class TargetAssignmentValueRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<TargetAssignmentValueTableInfo>)

From a TargetedDataRecord<TargetAssignmentValueTableInfo>, create and populate a TargetAssignmentValueRecordData POCO object

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

FromSelect(TargetedSelect<TargetAssignmentValueTableInfo>)

From a TargetedSelect<TargetAssignmentValueTableInfo>, execute it and return an IEnumerable<TargetAssignmentValueRecordData> with the results

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

ToInsert(TargetAssignmentValueRecordData)

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

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

ToInserts(IEnumerable<TargetAssignmentValueRecordData>)

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

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

ToRecordData(TargetAssignmentValueRow)

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

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