mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	Revert "为所有数据库 CodeFirst 中的 LocalExecuteScalar 增加 AOP"
This reverts commit aa13fc49a7.
			
			
This commit is contained in:
		@@ -78,7 +78,7 @@ namespace FreeSql.Custom.MySql
 | 
			
		||||
        {
 | 
			
		||||
            Object<DbConnection> conn = null;
 | 
			
		||||
            string database = null;
 | 
			
		||||
 | 
			
		||||
            
 | 
			
		||||
            try
 | 
			
		||||
            {
 | 
			
		||||
                conn = _orm.Ado.MasterPool.Get(TimeSpan.FromSeconds(5));
 | 
			
		||||
@@ -382,8 +382,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();
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user