We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
_fsql.Update<Usc_Message>().Where(d=>d.MessageType==1).Set(d => d.ReadTime == null) 语句生成为 UPDATE [Usc_Message] SET [ReadTime] IS NULL WHERE ([MessageType] = 1) 导致Sql语句错误,环境为SqlServer2012 根据set单个字段的使用环境,因该是赋值NULL,而不是IS NULL
_fsql.Update<Usc_Message>().Where(d=>d.MessageType==1).Set(d => d.ReadTime == null)
UPDATE [Usc_Message] SET [ReadTime] IS NULL WHERE ([MessageType] = 1)
The text was updated successfully, but these errors were encountered:
是有冲突,用这个吧 .Set(d => d.ReadTime, null)
Sorry, something went wrong.
- 修复 IUpdate.Set(a => a.xx = null) 表达式解析 bug;#311
0991464
v1.5.0-preview0521 #316 #311 #309
2f838e6
v1.5.0 #291 #311 #323
1ac13d6
No branches or pull requests
_fsql.Update<Usc_Message>().Where(d=>d.MessageType==1).Set(d => d.ReadTime == null)
语句生成为
UPDATE [Usc_Message] SET [ReadTime] IS NULL WHERE ([MessageType] = 1)
导致Sql语句错误,环境为SqlServer2012
根据set单个字段的使用环境,因该是赋值NULL,而不是IS NULL
The text was updated successfully, but these errors were encountered: