Show / Hide Table of Contents

Class SLinkRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SLinkTableInfo>)

From a TargetedDataRecord<SLinkTableInfo>, create and populate a SLinkRecordData POCO object

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

FromSelect(TargetedSelect<SLinkTableInfo>)

From a TargetedSelect<SLinkTableInfo>, execute it and return an IEnumerable<SLinkRecordData> with the results

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

ToInsert(SLinkRecordData)

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

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

ToInserts(IEnumerable<SLinkRecordData>)

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

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

ToRecordData(SLinkRow)

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

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