DatabaseErrorLogState DatabaseErrorLogState Class

Provided as the state to when logging an exception that occurred while accessing the database.

Syntax

Declaration

public class DatabaseErrorLogStatePublic Class DatabaseErrorLogState

Inheritance Hierarchy

  • System.Object
    System.Object
  • DatabaseErrorLogState
    DatabaseErrorLogState

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Initializes a new instance of the DatabaseErrorLogState class.

Properties summary

Gets the type of the derived context that the error occurred for.

Constructors

  • DatabaseErrorLogState(Type)
    DatabaseErrorLogState(Type)

    Initializes a new instance of the DatabaseErrorLogState class.

    public DatabaseErrorLogState(Type contextType)Public Sub New(contextType As Type)

    Parameters

    • contextType
      System.Type
      System.Type

      The type of the derived context that the error occurred for.

Properties

  • ContextType
    ContextType

    Gets the type of the derived context that the error occurred for.

    public virtual Type ContextType { get; }Public Overridable ReadOnly Property ContextType As Type

    Property Value

    • System.Type
      System.Type

Details

Assembly

Microsoft.EntityFrameworkCore.dll