Show / Hide Table of Contents

Class PaymentTermsGroupLinkRecordDataExtensions

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

Inheritance
Object
PaymentTermsGroupLinkRecordDataExtensions
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class PaymentTermsGroupLinkRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<PaymentTermsGroupLinkTableInfo>)

From a TargetedDataRecord<PaymentTermsGroupLinkTableInfo>, create and populate a PaymentTermsGroupLinkRecordData POCO object

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

FromSelect(TargetedSelect<PaymentTermsGroupLinkTableInfo>)

From a TargetedSelect<PaymentTermsGroupLinkTableInfo>, execute it and return an IEnumerable<PaymentTermsGroupLinkRecordData> with the results

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

ToInsert(PaymentTermsGroupLinkRecordData)

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

ToInserts(IEnumerable<PaymentTermsGroupLinkRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<PaymentTermsGroupLinkRecordData> records)
Parameters
Type Name Description
IEnumerable<PaymentTermsGroupLinkRecordData> records
Returns
Type Description
IEnumerable<Insert>
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top