Show / Hide Table of Contents

Class URLRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<URLTableInfo>)

From a TargetedDataRecord<URLTableInfo>, create and populate a URLRecordData POCO object

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

FromSelect(TargetedSelect<URLTableInfo>)

From a TargetedSelect<URLTableInfo>, execute it and return an IEnumerable<URLRecordData> with the results

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

ToInsert(URLRecordData)

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

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

ToInserts(IEnumerable<URLRecordData>)

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

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

ToRecordData(URLRow)

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

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