Show / Hide Table of Contents

Class PaymentTermsRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<PaymentTermsTableInfo>)

From a TargetedDataRecord<PaymentTermsTableInfo>, create and populate a PaymentTermsRecordData POCO object

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

FromSelect(TargetedSelect<PaymentTermsTableInfo>)

From a TargetedSelect<PaymentTermsTableInfo>, execute it and return an IEnumerable<PaymentTermsRecordData> with the results

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

ToInsert(PaymentTermsRecordData)

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

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

ToInserts(IEnumerable<PaymentTermsRecordData>)

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

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

ToRecordData(PaymentTermsRow)

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

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