Show / Hide Table of Contents

Class ErpConfigurationRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<ErpConfigurationTableInfo>)

From a TargetedDataRecord<ErpConfigurationTableInfo>, create and populate a ErpConfigurationRecordData POCO object

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

FromSelect(TargetedSelect<ErpConfigurationTableInfo>)

From a TargetedSelect<ErpConfigurationTableInfo>, execute it and return an IEnumerable<ErpConfigurationRecordData> with the results

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

ToInsert(ErpConfigurationRecordData)

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

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

ToInserts(IEnumerable<ErpConfigurationRecordData>)

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

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

ToRecordData(ErpConfigurationRow)

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

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