Class LogDebugRecordDataExtensions
Extension methods to make it easy to fetch LogDebugRecordData objects from the database,
using the
Inheritance
System.Object
LogDebugRecordDataExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.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 |
---|---|
System.Collections.Generic.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 |
---|---|---|
System.Collections.Generic.IEnumerable<LogDebugRecordData> | records |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Insert> |