mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Update exp to sql
This commit is contained in:
parent
e5d91f44bf
commit
d06cb08e0d
@ -96,6 +96,12 @@ namespace OrmTest
|
||||
}).ToSql();
|
||||
UValidate.Check(x.Key, "SELECT [a] AS [a] FROM [BoolTest2] ", "Queryable");
|
||||
|
||||
Db.CodeFirst.InitTables<BoolTest3>();
|
||||
var blist3= Db.Queryable<BoolTest3>().Select(it => new BoolTest3()
|
||||
{
|
||||
a = string.IsNullOrEmpty(it.Name)
|
||||
}).ToList();
|
||||
|
||||
var db = Db;
|
||||
db.CodeFirst.InitTables<UserInfo, UserIpRuleInfo>();
|
||||
db.Deleteable<UserInfo>().ExecuteCommand();
|
||||
@ -519,4 +525,9 @@ namespace OrmTest
|
||||
{
|
||||
public bool? a { get; set; }
|
||||
}
|
||||
public class BoolTest3
|
||||
{
|
||||
public bool? a { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -483,7 +483,7 @@ namespace SqlSugar
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (item.Type == UtilConstants.BoolType && item is MethodCallExpression && (item as MethodCallExpression).Method.Name == "Any"&&IsSubMethod(item as MethodCallExpression))
|
||||
else if (item.Type == UtilConstants.BoolType && item is MethodCallExpression)
|
||||
{
|
||||
this.Expression = item;
|
||||
this.Start();
|
||||
|
Loading…
Reference in New Issue
Block a user