Show / Hide Table of Contents

Class EjscriptDebugRecordDataExtensions

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

Inheritance
Object
EjscriptDebugRecordDataExtensions
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class EjscriptDebugRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<EjscriptDebugTableInfo>)

From a TargetedDataRecord<EjscriptDebugTableInfo>, create and populate a EjscriptDebugRecordData POCO object

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

FromSelect(TargetedSelect<EjscriptDebugTableInfo>)

From a TargetedSelect<EjscriptDebugTableInfo>, execute it and return an IEnumerable<EjscriptDebugRecordData> with the results

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

ToInsert(EjscriptDebugRecordData)

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

ToInserts(IEnumerable<EjscriptDebugRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<EjscriptDebugRecordData> records)
Parameters
Type Name Description
IEnumerable<EjscriptDebugRecordData> records
Returns
Type Description
IEnumerable<Insert>
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top