Show / Hide Table of Contents

Class PaymentTypeGroupLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<PaymentTypeGroupLinkTableInfo>)

From a TargetedDataRecord<PaymentTypeGroupLinkTableInfo>, create and populate a PaymentTypeGroupLinkRecordData POCO object

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

FromSelect(TargetedSelect<PaymentTypeGroupLinkTableInfo>)

From a TargetedSelect<PaymentTypeGroupLinkTableInfo>, execute it and return an IEnumerable<PaymentTypeGroupLinkRecordData> with the results

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

ToInsert(PaymentTypeGroupLinkRecordData)

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

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

ToInserts(IEnumerable<PaymentTypeGroupLinkRecordData>)

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

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

ToRecordData(PaymentTypeGroupLinkRow)

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

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