Class ScriptTraceRecordDataExtensions
Extension methods to make it easy to fetch ScriptTraceRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
ScriptTraceRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class ScriptTraceRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<ScriptTraceTableInfo>)
Declaration
public static ScriptTraceRecordData FromRecord(this TargetedDataRecord<ScriptTraceTableInfo> record)
Parameters
Returns
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 { ScriptTraceItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<ScriptTraceTableInfo>)
From a TargetedSelect<ScriptTraceTableInfo>, execute it and return an IEnumerable<ScriptTraceRecordData> with the results
Declaration
public static IEnumerable<ScriptTraceRecordData> FromSelect(this TargetedSelect<ScriptTraceTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(ScriptTraceRecordData)
Extension methods to make it easy to fetch ScriptTraceRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Insert ToInsert(this ScriptTraceRecordData record)
Parameters
Returns
ToInserts(IEnumerable<ScriptTraceRecordData>)
Extension methods to make it easy to fetch ScriptTraceRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<ScriptTraceRecordData> records)
Parameters
Returns
ToRecordData(ScriptTraceRow)
Extension methods to make it easy to fetch ScriptTraceRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static ScriptTraceRecordData ToRecordData(this ScriptTraceRow row)
Parameters
Returns