Class CurdBeforeEventArgs
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 CurdBeforeEventArgs : EventArgs
Constructors
| Improve this Doc View SourceCurdBeforeEventArgs(Guid, Stopwatch, Type, TableInfo, CurdType, String, DbParameter[], Dictionary<String, Object>)
Declaration
protected CurdBeforeEventArgs(Guid identifier, Stopwatch stopwatch, Type entityType, TableInfo table, CurdType curdType, string sql, DbParameter[] dbParms, Dictionary<string, object> states)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | identifier | |
System.Diagnostics.Stopwatch | stopwatch | |
System.Type | entityType | |
TableInfo | table | |
CurdType | curdType | |
System.String | sql | |
System.Data.Common.DbParameter[] | dbParms | |
System.Collections.Generic.Dictionary<System.String, System.Object> | states |
CurdBeforeEventArgs(Type, TableInfo, CurdType, String, DbParameter[])
Declaration
public CurdBeforeEventArgs(Type entityType, TableInfo table, CurdType curdType, string sql, DbParameter[] dbParms)
Parameters
Type | Name | Description |
---|---|---|
System.Type | entityType | |
TableInfo | table | |
CurdType | curdType | |
System.String | sql | |
System.Data.Common.DbParameter[] | dbParms |
Properties
| Improve this Doc View SourceCurdType
操作类型
Declaration
public CurdType CurdType { get; }
Property Value
Type | Description |
---|---|
CurdType |
DbParms
参数化命令
Declaration
public DbParameter[] DbParms { get; }
Property Value
Type | Description |
---|---|
System.Data.Common.DbParameter[] |
EntityType
实体类型
Declaration
public Type EntityType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Identifier
标识符,可将 CurdBefore 与 CurdAfter 进行匹配
Declaration
public Guid Identifier { get; protected set; }
Property Value
Type | Description |
---|---|
System.Guid |
Sql
执行的 SQL
Declaration
public string Sql { get; }
Property Value
Type | Description |
---|---|
System.String |
States
状态数据,可与 CurdAfter 共享
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 |
Table
实体类型的元数据
Declaration
public TableInfo Table { get; }
Property Value
Type | Description |
---|---|
TableInfo |