DatabaseLogFormatter 类

[This page is specific to the Entity Framework version 6.0 Beta. The latest version is available as the 'Entity Framework' NuGet package. For more information, see Entity Framework Releases and Versioning.]

继承层次结构

System.Object
  System.Data.Entity.Infrastructure.Interception.DatabaseLogFormatter

命名空间:  System.Data.Entity.Infrastructure.Interception
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
Public Class DatabaseLogFormatter _
    Implements IDbCommandInterceptor, IDbInterceptor
用法
Dim instance As DatabaseLogFormatter
public class DatabaseLogFormatter : IDbCommandInterceptor, 
    IDbInterceptor
public ref class DatabaseLogFormatter : IDbCommandInterceptor, 
    IDbInterceptor
type DatabaseLogFormatter =  
    class 
        interface IDbCommandInterceptor 
        interface IDbInterceptor 
    end
public class DatabaseLogFormatter implements IDbCommandInterceptor, IDbInterceptor

DatabaseLogFormatter 类型公开以下成员。

构造函数

  名称 说明
公共方法 DatabaseLogFormatter(Action<String>)
公共方法 DatabaseLogFormatter(DbContext, Action<String>)

页首

属性

  名称 说明
受保护属性 Context
受保护属性 Stopwatch

页首

方法

  名称 说明
公共方法 Equals (覆盖 Object.Equals(Object)。)
公共方法 Executed<TResult>
公共方法 Executing<TResult>
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (覆盖 Object.GetHashCode()。)
公共方法 GetType
公共方法 LogCommand<TResult>
公共方法 LogParameter<TResult>
公共方法 LogResult<TResult>
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 NonQueryExecuted
公共方法 NonQueryExecuting
公共方法 ReaderExecuted
公共方法 ReaderExecuting
公共方法 ScalarExecuted
公共方法 ScalarExecuting
公共方法 ToString (覆盖 Object.ToString()。)
受保护方法 Write

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

System.Data.Entity.Infrastructure.Interception 命名空间