Is Null Bug

This commit is contained in:
sunkaixuan
2017-05-25 02:28:47 +08:00
parent c3d1d8b7db
commit 62fb925df0
6 changed files with 19 additions and 12 deletions

View File

@@ -28,7 +28,7 @@ namespace OrmTest.UnitTest
whereSingle5();
whereSingle6();
whereSingle7(new Student() { Id = 1 });
//whereSingle8(new Student() { Id = 1 });
whereSingle8(new Student() { Id = 1 });
WhereMultiple1();
WhereMultiple2();
@@ -159,8 +159,8 @@ namespace OrmTest.UnitTest
expContext.Resolve(exp, ResolveExpressType.WhereSingle);
var value = expContext.Result.GetString();
var pars = expContext.Parameters;
base.Check(value, pars, "( [Name] is @Id0 )", new List<SugarParameter>() {
new SugarParameter("@Id0",1)
base.Check(value, pars, "( [Name] IS @Name0 )", new List<SugarParameter>() {
new SugarParameter("@Name0",null)
}, "whereSingle8");
}
}