Show / Hide Table of Contents

Class ScriptTraceRecordDataExtensions

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

Inheritance
object
ScriptTraceRecordDataExtensions
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 ScriptTraceRecordDataExtensions

Methods

FromRecord(TargetedDataRecord<ScriptTraceTableInfo>)

From a TargetedDataRecord<ScriptTraceTableInfo>, create and populate a ScriptTraceRecordData POCO object

Declaration
public static ScriptTraceRecordData FromRecord(this TargetedDataRecord<ScriptTraceTableInfo> record)
Parameters
Type Name Description
TargetedDataRecord<ScriptTraceTableInfo> record
Returns
Type Description
ScriptTraceRecordData
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
Type Name Description
TargetedSelect<ScriptTraceTableInfo> select
Returns
Type Description
IEnumerable<ScriptTraceRecordData>
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
Type Name Description
TargetedSelect<ScriptTraceTableInfo> select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<ScriptTraceRecordData>
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
Type Name Description
ScriptTraceRecordData record
CancellationToken cancellationToken
Returns
Type Description
Task<Insert>

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
Type Name Description
IEnumerable<ScriptTraceRecordData> records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerable<Insert>

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
Type Name Description
ScriptTraceRow row
Returns
Type Description
ScriptTraceRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top