Show / Hide Table of Contents

Class TabOrderRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<TabOrderTableInfo>)

From a TargetedDataRecord<TabOrderTableInfo>, create and populate a TabOrderRecordData POCO object

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

FromSelect(TargetedSelect<TabOrderTableInfo>)

From a TargetedSelect<TabOrderTableInfo>, execute it and return an IEnumerable<TabOrderRecordData> with the results

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

ToInsert(TabOrderRecordData)

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

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

ToInserts(IEnumerable<TabOrderRecordData>)

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

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

ToRecordData(TabOrderRow)

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

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