Show / Hide Table of Contents

Class SPictureFolderRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SPictureFolderTableInfo>)

From a TargetedDataRecord<SPictureFolderTableInfo>, create and populate a SPictureFolderRecordData POCO object

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

FromSelect(TargetedSelect<SPictureFolderTableInfo>)

From a TargetedSelect<SPictureFolderTableInfo>, execute it and return an IEnumerable<SPictureFolderRecordData> with the results

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

ToInsert(SPictureFolderRecordData)

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

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

ToInserts(IEnumerable<SPictureFolderRecordData>)

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

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

ToRecordData(SPictureFolderRow)

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

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