Class LogDebugRecordDataExtensions
Extension methods to make it easy to fetch LogDebugRecordData objects from the database,
using the TargetedSelect infrastructure
Inheritance
LogDebugRecordDataExtensions
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
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 { 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
Returns
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
Returns
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
Returns
ToInsertsAsync(IEnumerable<LogDebugRecordData>, CancellationToken)
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<LogDebugRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
ToRecordData(LogDebugRow)
Declaration
public static LogDebugRecordData ToRecordData(this LogDebugRow row)
Parameters
Returns