Show / Hide Table of Contents

Class DeliveryTermsRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<DeliveryTermsTableInfo>)

From a TargetedDataRecord<DeliveryTermsTableInfo>, create and populate a DeliveryTermsRecordData POCO object

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

FromSelect(TargetedSelect<DeliveryTermsTableInfo>)

From a TargetedSelect<DeliveryTermsTableInfo>, execute it and return an IEnumerable<DeliveryTermsRecordData> with the results

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

ToInsert(DeliveryTermsRecordData)

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

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

ToInserts(IEnumerable<DeliveryTermsRecordData>)

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

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

ToRecordData(DeliveryTermsRow)

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

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