mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 增加 达梦数据库 ODBC 适配,和单元测试,支持 CodeFirst 模式开发;
This commit is contained in:
		@@ -114,8 +114,8 @@ namespace FreeSql
 | 
			
		||||
                (item as BaseEntity).IsDeleted = false;
 | 
			
		||||
            return func(repo, childs);
 | 
			
		||||
        }
 | 
			
		||||
        public override bool Delete() => UpdateIsDelete(true, (repo, chis) => repo.Update(chis)) > 0;
 | 
			
		||||
        async public override Task<bool> DeleteAsync() => await UpdateIsDelete(true, (repo, chis) => repo.UpdateAsync(chis)) > 0;
 | 
			
		||||
        public override bool Delete(bool physicalDelete = false) => UpdateIsDelete(true, (repo, chis) => repo.Update(chis)) > 0;
 | 
			
		||||
        async public override Task<bool> DeleteAsync(bool physicalDelete = false) => await UpdateIsDelete(true, (repo, chis) => repo.UpdateAsync(chis)) > 0;
 | 
			
		||||
 | 
			
		||||
        public override bool Restore() => UpdateIsDelete(false, (repo, chis) => repo.Update(chis)) > 0;
 | 
			
		||||
        async public override Task<bool> RestoreAsync() => await UpdateIsDelete(false, (repo, chis) => repo.UpdateAsync(chis)) > 0;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user