This commit is contained in:
sunkaixuan
2017-09-07 14:44:42 +08:00
parent cc389857e3
commit 1cf9fca566
2 changed files with 22 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ namespace OrmTest.UnitTest
base.Begin();
for (int i = 0; i < base.Count; i++)
{
whereSingle24();
whereSingle23();
whereSingle22();
whereSingle21();
@@ -378,6 +378,18 @@ namespace OrmTest.UnitTest
new SugarParameter("@Const0",val)
}, "whereSingle23");
}
private void whereSingle24()
{
Expression<Func<DataTestInfo, bool>> exp = it => it.Datetime1 > DateTime.Now.Date;
SqlServerExpressionContext expContext = new SqlServerExpressionContext();
expContext.Resolve(exp, ResolveExpressType.WhereSingle);
var value = expContext.Result.GetString();
var pars = expContext.Parameters;
base.Check(value, pars, "( [Datetime1] > @Datetime10 )", new List<SugarParameter>()
{
new SugarParameter("@Datetime10",DateTime.Now.Date)
}, "whereSingle24");
}
}
public class WhereConst