Show / Hide Table of Contents

Class LogDebugRecordDataExtensions

Extension methods to make it easy to fetch LogDebugRecordData objects from the database, using the TargetedSelect 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: SuperOfficeCRMRows
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
TargetedDataRecordLogDebugTableInfo 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
TargetedSelectLogDebugTableInfo select
Returns
Type Description
IEnumerableLogDebugRecordData
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

FromSelectAsync(TargetedSelect<LogDebugTableInfo>, CancellationToken)

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

Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<LogDebugRecordData> FromSelectAsync(this TargetedSelect<LogDebugTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Type Name Description
TargetedSelectLogDebugTableInfo select
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerableLogDebugRecordData
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();

ToInsertAsync(LogDebugRecordData, CancellationToken)

Declaration
public static Task<Insert> ToInsertAsync(this LogDebugRecordData record, CancellationToken cancellationToken = default)
Parameters
Type Name Description
LogDebugRecordData record
CancellationToken cancellationToken
Returns
Type Description
TaskInsert

ToInsertsAsync(IEnumerable<LogDebugRecordData>, CancellationToken)

Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<LogDebugRecordData> records, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerableLogDebugRecordData records
CancellationToken cancellationToken
Returns
Type Description
IAsyncEnumerableInsert

ToRecordData(LogDebugRow)

Declaration
public static LogDebugRecordData ToRecordData(this LogDebugRow row)
Parameters
Type Name Description
LogDebugRow row
Returns
Type Description
LogDebugRecordData
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top