-
Notifications
You must be signed in to change notification settings - Fork 856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InsertOrUpdate函数在更新数据时出现映射sql丢失问题 #1630
Comments
2881099
added a commit
that referenced
this issue
Sep 27, 2023
2881099
added a commit
that referenced
this issue
Sep 27, 2023
2881099
added a commit
that referenced
this issue
Sep 28, 2023
[JsonProperty, Column(IsIdentity = true)]
public int AutoIndex { get; set; } 忽略之前的更新。 解决办法: [JsonProperty, Column(IsIdentity = true, CanUpdate = false)]
public int AutoIndex { get; set; } |
2881099
added a commit
that referenced
this issue
Oct 9, 2023
2881099
added a commit
that referenced
this issue
Oct 9, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述及重现代码:
问题描述:同步情况下,数据库某条数据已存在的时候,InsertOrUpdate函数在执行时候映射生成的sql 时,会出现
“2023-09-27 17:56:22 8811 线程ID[4]->UPDATE [RIS_WORKLIST] SET ” 这情况,丢失了set后面的部分语句,报错提示:‘set’ 附近有语法错误”。
做过测试,在数据库数据与实体某个字段数据不同的时候就能正常保存成功,生成语句也正常。
数据库版本
mssql
安装的Nuget包
FreeSql 3.2.801
FreeSql.Provider.SqlServer 3.2.801
FreeSql.Repository 3.2.801
IdleBus 1.5.2
.net framework/. net core? 及具体版本
net core 3.1
The text was updated successfully, but these errors were encountered: