mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
- 优化 WhereDynamic 传入 string 的时候自动转为主键的类型值;
This commit is contained in:
@ -276,6 +276,10 @@ namespace FreeSql.Internal
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
else if (primarys.Length == 1 && type == typeof(string))
|
||||
{
|
||||
return $"{aliasAndDot}{this.QuoteSqlName(pk1.Attribute.Name)} = {this.FormatSql("{0}", Utils.GetDataReaderValue(pk1.Attribute.MapType, dywhere))}";
|
||||
}
|
||||
else if (dywhere is IEnumerable)
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
|
Reference in New Issue
Block a user