Revert "为所有数据库 CodeFirst 中的 LocalExecuteScalar 增加 AOP"

This reverts commit aa13fc49a7.
This commit is contained in:
hyzx86
2023-04-04 16:33:24 +08:00
parent aa13fc49a7
commit 0b4124202e
10 changed files with 4 additions and 38 deletions

View File

@ -383,8 +383,6 @@ where a.table_schema IN ({0}) and a.table_name IN ({1}) and a.index_name <> 'PRI
{
cmd.CommandText = sql;
cmd.CommandType = CommandType.Text;
var before = new Aop.CommandBeforeEventArgs(cmd);
this._orm?.Aop.CommandBeforeHandler?.Invoke(this._orm, before);
return cmd.ExecuteScalar();
}
}

View File

@ -475,8 +475,6 @@ use [" + database + "];", tboldname ?? tbname);
{
cmd.CommandText = sql;
cmd.CommandType = CommandType.Text;
var before = new Aop.CommandBeforeEventArgs(cmd);
this._orm?.Aop.CommandBeforeHandler?.Invoke(this._orm, before);
return cmd.ExecuteScalar();
}
}