Show / Hide Table of Contents

Class PersPosGroupLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<PersPosGroupLinkTableInfo>)

From a TargetedDataRecord<PersPosGroupLinkTableInfo>, create and populate a PersPosGroupLinkRecordData POCO object

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

FromSelect(TargetedSelect<PersPosGroupLinkTableInfo>)

From a TargetedSelect<PersPosGroupLinkTableInfo>, execute it and return an IEnumerable<PersPosGroupLinkRecordData> with the results

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

ToInsert(PersPosGroupLinkRecordData)

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

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

ToInserts(IEnumerable<PersPosGroupLinkRecordData>)

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

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

ToRecordData(PersPosGroupLinkRow)

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

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