Show / Hide Table of Contents

Class SaleHistRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SaleHistTableInfo>)

From a TargetedDataRecord<SaleHistTableInfo>, create and populate a SaleHistRecordData POCO object

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

FromSelect(TargetedSelect<SaleHistTableInfo>)

From a TargetedSelect<SaleHistTableInfo>, execute it and return an IEnumerable<SaleHistRecordData> with the results

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

ToInsert(SaleHistRecordData)

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

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

ToInserts(IEnumerable<SaleHistRecordData>)

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

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

ToRecordData(SaleHistRow)

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

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