MoDao1990217
MoDao1990217
There is a bug in the all-selected component of the table component. The current page is the first page, with 100 pieces of data. Then, conditional query is used to...
### Describe the bug bind-CheckedKeys or DefaultCheckedKeys invalid。 Everything was fine until yesterday's update ### Further technical details - AntDesign Nuget Package 0.17.3
#### 问题描述及重现代码: InsertOrUpdate() .SetSource(data) .ExecuteAffrowsAsync(); 在执行时,似乎是以主键为主,主键存在时执行更新,不存在时,执行插入。当表中除了主键外,还有唯一索引时,唯一索引存在时,则不会执行更新,而是直接报错,报索引冲突。 SetSource的重载方法,指定临时主键仅对 SqlServer/PostgreSQL/Firebird/达梦/南大通用/金仓/神通 有效 而InsertOrUpdate() .SetSource(data).ExecuteMySqlBulkCopy() 则不存在此问题,唯一索引存在时,也会执行更新,不存在时,也会执行插入。 ```c# InsertOrUpdate() .SetSource(data) .ExecuteAffrowsAsync(); ``` #### 数据库版本 mysql 5.7 #### 安装的Nuget包 各版本都有此问题 #### .net framework/. net core? 及具体版本...
#### 问题描述及重现代码: mysql InsertOrUpdate批量ExecuteMySqlBulkCopy时,如果表中没相关数据,则插入成功,如表中有相关数据,不会执行更新,而是直接报错误:3 rows were copied to Test_24032017 but only 0 were inserted. 此问题与:#1739 有相关性。https://github.com/dotnetcore/FreeSql/issues/1739 #1379 是在分表时,如果不为分表时间字段添加默认值,就会出现问题。 而当前故障是给分表时间字段添加了默认值后,当数据库有值存在时,不会更新,而是直接报错。 调试出错位置在   下面提供复现demo ```c# IFreeSql fsql = new FreeSql.FreeSqlBuilder()...
#### 问题描述及重现代码: mysql 按时间进行分表,执行ExecuteMySqlBulkCopy 出现错误,错误信息:“分表字段值 "0001-01-01 00:00:00" 不能小于 "2024-01-01 00:00:00 " 经调试,疑似异常出现在以下位置。    在ToSql函数中,重新创建了一个data,在调用getlnsertSal函数时,内部将这个list赋值给_source了,导致在TableRulelnvoke函数获表表名时,出现了异常。 后续发现,当不给分表时间字段默认值时,会出现此故障。而给了默认值后,会有新有问题。#1754 ```c# using FreeSql.DataAnnotations; using Microsoft.Extensions.DependencyInjection; using Newtonsoft.Json; using System; using System.ComponentModel.DataAnnotations; using System.Diagnostics;...
#### Feature 特性 可以手动关闭乐观锁检查 ```c# // c# code ``` #### 简要描述原因 数据表中已经添加了乐观锁,乐观锁需要先查出来,才能更新,但在某些特定情况下,有需要大批量更新,已经确定这个更新的数据不需要效验乐观锁,大批量更新时先查再更橷,性能会成问题。可否加一个特定的方法,在某些情况下,可以关闭乐观锁效验。 ```c# // c# code ``` #### 使用场景 批量更新 ```c# // c# code ```