Show / Hide Table of Contents

Class PriceUnitRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<PriceUnitTableInfo>)

From a TargetedDataRecord<PriceUnitTableInfo>, create and populate a PriceUnitRecordData POCO object

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

FromSelect(TargetedSelect<PriceUnitTableInfo>)

From a TargetedSelect<PriceUnitTableInfo>, execute it and return an IEnumerable<PriceUnitRecordData> with the results

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

ToInsert(PriceUnitRecordData)

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

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

ToInserts(IEnumerable<PriceUnitRecordData>)

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

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

ToRecordData(PriceUnitRow)

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

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