Class CommandBeforeEventArgs
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 SourceCommandBeforeEventArgs(DbCommand)
Declaration
public CommandBeforeEventArgs(DbCommand command)
Parameters
Type | Name | Description |
---|---|---|
System.Data.Common.DbCommand | command |
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 SourceCommand
Declaration
public DbCommand Command { get; }
Property Value
Type | Description |
---|---|
System.Data.Common.DbCommand |
Identifier
标识符,可将 CommandBefore 与 CommandAfter 进行匹配
Declaration
public Guid Identifier { get; protected set; }
Property Value
Type | Description |
---|---|
System.Guid |
States
状态数据,可与 CommandAfter 共享
Declaration
public Dictionary<string, object> States { get; protected set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Object> |
Stopwatch
Declaration
protected Stopwatch Stopwatch { get; }
Property Value
Type | Description |
---|---|
System.Diagnostics.Stopwatch |