- 增加 AuditValueEventArgs Object 参数;#1128

This commit is contained in:
2881099
2022-05-28 11:34:55 +08:00
parent e50c8ee7cd
commit ec97e03b51
6 changed files with 17 additions and 6 deletions

View File

@ -308,12 +308,13 @@ namespace FreeSql.Aop
#region AuditValue
public class AuditValueEventArgs : EventArgs
{
public AuditValueEventArgs(AuditValueType autoValueType, ColumnInfo column, PropertyInfo property, object value)
public AuditValueEventArgs(AuditValueType autoValueType, ColumnInfo column, PropertyInfo property, object value, object obj)
{
this.AuditValueType = autoValueType;
this.Column = column;
this.Property = property;
this._value = value;
this.Object = obj;
}
/// <summary>
@ -342,6 +343,7 @@ namespace FreeSql.Aop
}
private object _value;
public bool ValueIsChanged { get; private set; }
public object Object { get; }
}
public enum AuditValueType { Update, Insert, InsertOrUpdate }
#endregion