This commit is contained in:
sunkaixuan
2017-01-28 21:19:48 +08:00
parent ba927808bf
commit 6e4eb974a6
7 changed files with 40 additions and 21 deletions

View File

@@ -27,9 +27,21 @@ namespace OrmTest.ExpressionTest
whereSingle4();
whereSingle5();
whereSingle6();
WhereMultiple1();
}
base.End("Where Test");
}
private void WhereMultiple1()
{
Expression<Func<Student, bool>> exp = it => it.Id > 1;
ExpressionContext expContext = new ExpressionContext(exp, ResolveExpressType.WhereMultiple);
expContext.Resolve();
var value = expContext.Result.GetString();
var pars = expContext.Parameters;
base.Check(value, pars, "( it.Id > @Id0 )", new List<SugarParameter>() {
new SugarParameter("@Id0",1)
}, "WhereMultiple1");
}
private void whereSingle1()
{
Expression<Func<Student, bool>> exp = it => it.Id > 1;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.