Show / Hide Table of Contents

Class ImportObjectRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ImportObjectTableInfo>)

From a TargetedDataRecord<ImportObjectTableInfo>, create and populate a ImportObjectRecordData POCO object

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

FromSelect(TargetedSelect<ImportObjectTableInfo>)

From a TargetedSelect<ImportObjectTableInfo>, execute it and return an IEnumerable<ImportObjectRecordData> with the results

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

ToInsert(ImportObjectRecordData)

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

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

ToInserts(IEnumerable<ImportObjectRecordData>)

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

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

ToRecordData(ImportObjectRow)

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

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