mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 01:05:27 +08:00 
			
		
		
		
	@@ -263,12 +263,12 @@ namespace FreeSql
 | 
			
		||||
                    }));
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (_repository.DbContextOptions.AuditValueHandler != null)
 | 
			
		||||
            if (_repository.DbContextOptions.AuditValue != null)
 | 
			
		||||
            {
 | 
			
		||||
                foreach (var log in tracking.UpdateLog)
 | 
			
		||||
                {
 | 
			
		||||
                    var table = Orm.CodeFirst.GetTableByEntity(log.Item1);
 | 
			
		||||
                    _repository.DbContextOptions.AuditValueHandler(this, new DbContextAuditValueEventArgs(Aop.AuditValueType.Update, log.Item1, log.Item3));
 | 
			
		||||
                    _repository.DbContextOptions.AuditValue(new DbContextAuditValueEventArgs(Aop.AuditValueType.Update, log.Item1, log.Item3));
 | 
			
		||||
                    log.Item4.Clear();
 | 
			
		||||
                    foreach (var col in table.ColumnsByCs.Values)
 | 
			
		||||
                    {
 | 
			
		||||
 
 | 
			
		||||
@@ -314,12 +314,12 @@ namespace FreeSql
 | 
			
		||||
                    }));
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (_repository.DbContextOptions.AuditValueHandler != null)
 | 
			
		||||
            if (_repository.DbContextOptions.AuditValue != null)
 | 
			
		||||
            {
 | 
			
		||||
                foreach (var log in tracking.UpdateLog)
 | 
			
		||||
                {
 | 
			
		||||
                    var table = Orm.CodeFirst.GetTableByEntity(log.Item1);
 | 
			
		||||
                    _repository.DbContextOptions.AuditValueHandler(this, new DbContextAuditValueEventArgs(Aop.AuditValueType.Update, log.Item1, log.Item3));
 | 
			
		||||
                    _repository.DbContextOptions.AuditValue(new DbContextAuditValueEventArgs(Aop.AuditValueType.Update, log.Item1, log.Item3));
 | 
			
		||||
                    log.Item4.Clear();
 | 
			
		||||
                    foreach (var col in table.ColumnsByCs.Values)
 | 
			
		||||
                    {
 | 
			
		||||
 
 | 
			
		||||
@@ -18,7 +18,7 @@
 | 
			
		||||
		<SignAssembly>true</SignAssembly>
 | 
			
		||||
		<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
 | 
			
		||||
		<DelaySign>false</DelaySign>
 | 
			
		||||
		<Version>3.2.811-preview20240126</Version>
 | 
			
		||||
		<Version>3.2.811</Version>
 | 
			
		||||
		<PackageReadmeFile>readme.md</PackageReadmeFile>
 | 
			
		||||
	</PropertyGroup>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user