Show / Hide Table of Contents

Class CustCategoryRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<CustCategoryTableInfo>)

From a TargetedDataRecord<CustCategoryTableInfo>, create and populate a CustCategoryRecordData POCO object

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

FromSelect(TargetedSelect<CustCategoryTableInfo>)

From a TargetedSelect<CustCategoryTableInfo>, execute it and return an IEnumerable<CustCategoryRecordData> with the results

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

ToInsert(CustCategoryRecordData)

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

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

ToInserts(IEnumerable<CustCategoryRecordData>)

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

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

ToRecordData(CustCategoryRow)

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

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