|
@ -3,6 +3,7 @@ using System.Collections.Generic; |
|
|
using System.Linq; |
|
|
using System.Linq; |
|
|
using System.Linq.Expressions; |
|
|
using System.Linq.Expressions; |
|
|
using System.Text; |
|
|
using System.Text; |
|
|
|
|
|
using System.Text.RegularExpressions; |
|
|
|
|
|
|
|
|
namespace SqlSugar |
|
|
namespace SqlSugar |
|
|
{ |
|
|
{ |
|
@ -188,10 +189,10 @@ namespace SqlSugar |
|
|
{ |
|
|
{ |
|
|
var isFirst = whereString == null; |
|
|
var isFirst = whereString == null; |
|
|
whereString += (isFirst ? null : " AND "); |
|
|
whereString += (isFirst ? null : " AND "); |
|
|
whereString += item; |
|
|
whereString += Regex.Replace(item,"\\"+this.Builder.SqlTranslationLeft,"T."+ this.Builder.SqlTranslationLeft); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else if (PrimaryKeys.HasValue()) |
|
|
if (PrimaryKeys.HasValue()) |
|
|
{ |
|
|
{ |
|
|
foreach (var item in PrimaryKeys) |
|
|
foreach (var item in PrimaryKeys) |
|
|
{ |
|
|
{ |
|
|