Show / Hide Table of Contents

Class OLEViewRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<OLEViewTableInfo>)

From a TargetedDataRecord<OLEViewTableInfo>, create and populate a OLEViewRecordData POCO object

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

FromSelect(TargetedSelect<OLEViewTableInfo>)

From a TargetedSelect<OLEViewTableInfo>, execute it and return an IEnumerable<OLEViewRecordData> with the results

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

ToInsert(OLEViewRecordData)

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

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

ToInserts(IEnumerable<OLEViewRecordData>)

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

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

ToRecordData(OLEViewRow)

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

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