mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
- 增加 Aop.AuditDataReader 参数属性 PropertyInfo,实现自定义拦截;
This commit is contained in:
@ -360,10 +360,11 @@ namespace FreeSql.Aop
|
||||
#region AuditDataReader
|
||||
public class AuditDataReaderEventArgs : EventArgs
|
||||
{
|
||||
public AuditDataReaderEventArgs(DbDataReader dataReader, int index)
|
||||
public AuditDataReaderEventArgs(DbDataReader dataReader, int index, PropertyInfo property)
|
||||
{
|
||||
this.DataReader = dataReader;
|
||||
this.Index = index;
|
||||
this.Property = property;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -375,6 +376,10 @@ namespace FreeSql.Aop
|
||||
/// </summary>
|
||||
public int Index { get; }
|
||||
/// <summary>
|
||||
/// DataReader 对应的 PropertyInfo
|
||||
/// </summary>
|
||||
public PropertyInfo Property { get; }
|
||||
/// <summary>
|
||||
/// 获取 Index 对应的值,也可以设置拦截的新值
|
||||
/// </summary>
|
||||
public object Value
|
||||
|
Reference in New Issue
Block a user