Show / Hide Table of Contents

Class LogDebugRecordDataExtensions

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

Inheritance
Object
LogDebugRecordDataExtensions
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 LogDebugRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<LogDebugTableInfo>)

From a TargetedDataRecord<LogDebugTableInfo>, create and populate a LogDebugRecordData POCO object

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

FromSelect(TargetedSelect<LogDebugTableInfo>)

From a TargetedSelect<LogDebugTableInfo>, execute it and return an IEnumerable<LogDebugRecordData> with the results

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

ToInsert(LogDebugRecordData)

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

ToInserts(IEnumerable<LogDebugRecordData>)

Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<LogDebugRecordData> records)
Parameters
Type Name Description
IEnumerable<LogDebugRecordData> 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