mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
- 优化 IsVersion 字段更新 version=ifnull(version,0)+1
This commit is contained in:
parent
65fa7ceb95
commit
f7205b0414
@ -629,7 +629,7 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
if (_table.VersionColumn != null)
|
if (_table.VersionColumn != null)
|
||||||
{
|
{
|
||||||
var vcname = _commonUtils.QuoteSqlName(_table.VersionColumn.Attribute.Name);
|
var vcname = _commonUtils.QuoteSqlName(_table.VersionColumn.Attribute.Name);
|
||||||
sb.Append(", ").Append(vcname).Append(" = ").Append(vcname).Append(" + 1");
|
sb.Append(", ").Append(vcname).Append(" = ").Append(_commonUtils.IsNull(vcname, 0)).Append(" + 1");
|
||||||
}
|
}
|
||||||
|
|
||||||
sb.Append(" \r\nWHERE ");
|
sb.Append(" \r\nWHERE ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user