Update 人大金仓 Updteable(list).Where

This commit is contained in:
sunkaixuan
2024-08-26 09:35:31 +08:00
parent a995c64554
commit ae13beba65
2 changed files with 6 additions and 2 deletions

View File

@@ -98,6 +98,10 @@ namespace SqlSugar
}
private bool UpdateObjectNotWhere()
{
if (this.Context?.CurrentConnectionConfig?.MoreSettings?.DatabaseModel == DbType.SqlServer)
{
return false;
}
return this.Context.CurrentConnectionConfig.DbType != DbType.MySql
&& this.Context.CurrentConnectionConfig.DbType != DbType.MySqlConnector
&& this.Context.CurrentConnectionConfig.DbType != DbType.SqlServer;

View File

@@ -166,10 +166,10 @@ namespace SqlSugar
{
var isFirst = whereString == null;
whereString += (isFirst ? null : " AND ");
whereString += item;
whereString += item.Replace(" \""," T.\"");
}
}
else if (PrimaryKeys.HasValue())
if (PrimaryKeys.HasValue())
{
foreach (var item in PrimaryKeys)
{