Show / Hide Table of Contents

Class SPictureEntryRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<SPictureEntryTableInfo>)

From a TargetedDataRecord<SPictureEntryTableInfo>, create and populate a SPictureEntryRecordData POCO object

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

FromSelect(TargetedSelect<SPictureEntryTableInfo>)

From a TargetedSelect<SPictureEntryTableInfo>, execute it and return an IEnumerable<SPictureEntryRecordData> with the results

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

ToInsert(SPictureEntryRecordData)

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

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

ToInserts(IEnumerable<SPictureEntryRecordData>)

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

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

ToRecordData(SPictureEntryRow)

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

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