mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	更改批量插入数据的方式(测试100w条5秒不到),更改数据修改时的替换可能替换到数据的问题
This commit is contained in:
		@@ -24,7 +24,11 @@ namespace FreeSql.ClickHouse.Curd
 | 
			
		||||
        internal Dictionary<string, bool> InternalIgnore => _ignore;
 | 
			
		||||
        public override string ToSql()
 | 
			
		||||
        {
 | 
			
		||||
            return base.ToSql()?.Replace("UPDATE", "ALTER TABLE").Replace("SET", "UPDATE");
 | 
			
		||||
            var sql = base.ToSql();
 | 
			
		||||
            sql = sql.Remove(0, 6).Insert(0, "ALTER TABLE");
 | 
			
		||||
            var index = sql.IndexOf(" SET ");
 | 
			
		||||
            sql = sql.Remove(index, 5).Insert(index, " UPDATE ");
 | 
			
		||||
            return sql;
 | 
			
		||||
        }
 | 
			
		||||
        internal void InternalResetSource(List<T1> source) => _source = source;
 | 
			
		||||
        internal string InternalWhereCaseSource(string CsName, Func<string, string> thenValue) => WhereCaseSource(CsName, thenValue);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user