TestSqlLoggerFactory TestSqlLoggerFactory Class

Syntax

Declaration

public class TestSqlLoggerFactory : ILoggerFactoryPublic Class TestSqlLoggerFactory
    Inherits ILoggerFactory

Inheritance Hierarchy

  • System.Object
    System.Object
  • TestSqlLoggerFactory
    TestSqlLoggerFactory

Properties summary

Methods summary

Properties

  • CommandLogData
    CommandLogData
    public static IReadOnlyList<DbCommandLogData> CommandLogData { get; }Public Shared ReadOnly Property CommandLogData As IReadOnlyList(Of DbCommandLogData)

    Property Value

  • Log
    Log
    public static string Log { get; }Public Shared ReadOnly Property Log As String

    Property Value

    • System.String
      System.String
  • Sql
    Sql
    public static string Sql { get; }Public Shared ReadOnly Property Sql As String

    Property Value

    • System.String
      System.String
  • SqlStatements
    SqlStatements
    public static IReadOnlyList<string> SqlStatements { get; }Public Shared ReadOnly Property SqlStatements As IReadOnlyList(Of String)

    Property Value

    • System.Collections.Generic.IReadOnlyList<T><System.String>
      System.Collections.Generic.IReadOnlyList<T>(Of System.String)

Methods

  • AddProvider(ILoggerProvider)
    AddProvider(ILoggerProvider)
    public void AddProvider(ILoggerProvider provider)Public Sub AddProvider(provider As ILoggerProvider)

    Parameters

    • provider
      ILoggerProvider
      ILoggerProvider
  • CancelQuery()
    CancelQuery()
    public CancellationToken CancelQuery()Public Function CancelQuery As CancellationToken

    Returns

    • System.Threading.CancellationToken
      System.Threading.CancellationToken
  • CaptureOutput(ITestOutputHelper)
    CaptureOutput(ITestOutputHelper)
    public static void CaptureOutput(ITestOutputHelper testOutputHelper)Public Shared Sub CaptureOutput(testOutputHelper As ITestOutputHelper)

    Parameters

    • testOutputHelper
      ITestOutputHelper
      ITestOutputHelper
  • CreateLogger(String)
    CreateLogger(String)
    public ILogger CreateLogger(string name)Public Function CreateLogger(name As String) As ILogger

    Parameters

    • name
      System.String
      System.String

    Returns

    • ILogger
      ILogger
  • Dispose()
    Dispose()
    public void Dispose()Public Sub Dispose
  • Reset()
    Reset()
    public static void Reset()Public Shared Sub Reset

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.Specification.Tests.dll