mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	Revert "为所有数据库 CodeFirst 中的 LocalExecuteScalar 增加 AOP"
This reverts commit aa13fc49a7.
			
			
This commit is contained in:
		@@ -480,9 +480,7 @@ where a.database in ({0}) and a.table in ({1})", tboldname ?? tbname);
 | 
			
		||||
                    using (var cmd = conn.Value.CreateCommand())
 | 
			
		||||
                    {
 | 
			
		||||
                        cmd.CommandText = sql;
 | 
			
		||||
                        cmd.CommandType = CommandType.Text; 
 | 
			
		||||
                        var before = new Aop.CommandBeforeEventArgs(cmd);
 | 
			
		||||
                        this._orm?.Aop.CommandBeforeHandler?.Invoke(this._orm, before);
 | 
			
		||||
                        cmd.CommandType = CommandType.Text;
 | 
			
		||||
                        return cmd.ExecuteScalar();
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user