Show / Hide Table of Contents

Class ContIntRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ContIntTableInfo>)

From a TargetedDataRecord<ContIntTableInfo>, create and populate a ContIntRecordData POCO object

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

FromSelect(TargetedSelect<ContIntTableInfo>)

From a TargetedSelect<ContIntTableInfo>, execute it and return an IEnumerable<ContIntRecordData> with the results

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

ToInsert(ContIntRecordData)

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

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

ToInserts(IEnumerable<ContIntRecordData>)

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

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

ToRecordData(ContIntRow)

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

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