mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	修改 Mysql, SqlServer ,Odbc AOP command 拦截
This commit is contained in:
		@@ -474,6 +474,8 @@ 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();
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user