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();
FromSelectAsync(TargetedSelect<ScriptTraceTableInfo>, CancellationToken)
From a TargetedSelect<ScriptTraceTableInfo>, execute it and return an IEnumerable<ScriptTraceRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<ScriptTraceRecordData> FromSelectAsync(this TargetedSelect<ScriptTraceTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsertAsync(ScriptTraceRecordData, CancellationToken)
Extension methods to make it easy to fetch ScriptTraceRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static Task<Insert> ToInsertAsync(this ScriptTraceRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
ToInsertsAsync(IEnumerable<ScriptTraceRecordData>, CancellationToken)
Extension methods to make it easy to fetch ScriptTraceRecordData objects from the database,
using the TargetedSelect infrastructure
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<ScriptTraceRecordData> records, CancellationToken cancellationToken = default)
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