Search Results for

    Show / Hide Table of Contents

    Class CommandBeforeEventArgs

    Inheritance
    System.Object
    System.EventArgs
    CommandBeforeEventArgs
    CommandAfterEventArgs
    Inherited Members
    System.EventArgs.Empty
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: FreeSql.Aop
    Assembly: FreeSql.dll
    Syntax
    public class CommandBeforeEventArgs : EventArgs

    Constructors

    | Improve this Doc View Source

    CommandBeforeEventArgs(DbCommand)

    Declaration
    public CommandBeforeEventArgs(DbCommand command)
    Parameters
    Type Name Description
    System.Data.Common.DbCommand command
    | Improve this Doc View Source

    CommandBeforeEventArgs(Guid, Stopwatch, DbCommand, Dictionary<String, Object>)

    Declaration
    protected CommandBeforeEventArgs(Guid identifier, Stopwatch stopwatch, DbCommand command, Dictionary<string, object> states)
    Parameters
    Type Name Description
    System.Guid identifier
    System.Diagnostics.Stopwatch stopwatch
    System.Data.Common.DbCommand command
    System.Collections.Generic.Dictionary<System.String, System.Object> states

    Properties

    | Improve this Doc View Source

    Command

    Declaration
    public DbCommand Command { get; }
    Property Value
    Type Description
    System.Data.Common.DbCommand
    | Improve this Doc View Source

    Identifier

    标识符,可将 CommandBefore 与 CommandAfter 进行匹配

    Declaration
    public Guid Identifier { get; protected set; }
    Property Value
    Type Description
    System.Guid
    | Improve this Doc View Source

    States

    状态数据,可与 CommandAfter 共享

    Declaration
    public Dictionary<string, object> States { get; protected set; }
    Property Value
    Type Description
    System.Collections.Generic.Dictionary<System.String, System.Object>
    | Improve this Doc View Source

    Stopwatch

    Declaration
    protected Stopwatch Stopwatch { get; }
    Property Value
    Type Description
    System.Diagnostics.Stopwatch
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX