Show / Hide Table of Contents

Class EjselectionRecordDataExtensions

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

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

Methods

FromRecord(TargetedDataRecord<EjselectionTableInfo>)

From a TargetedDataRecord<EjselectionTableInfo>, create and populate a EjselectionRecordData POCO object

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

FromSelect(TargetedSelect<EjselectionTableInfo>)

From a TargetedSelect<EjselectionTableInfo>, execute it and return an IEnumerable<EjselectionRecordData> with the results

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

ToInsert(EjselectionRecordData)

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

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

ToInserts(IEnumerable<EjselectionRecordData>)

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

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

ToRecordData(EjselectionRow)

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

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