Update QueryobjectBug

This commit is contained in:
sunkaixuan
2018-01-31 10:42:41 +08:00
parent 06002151fa
commit f56a33aba3
2 changed files with 5 additions and 1 deletions

View File

@@ -216,6 +216,7 @@ namespace OrmTest.Demo
var date = db.Queryable<Student>().Where(it => it.CreateTime.Value.Date ==DateTime.Now.Date).ToList();
var isAny2 = db.Queryable<Student>().Any(it => it.Id == -1);
var getListByRename = db.Queryable<School>().AS("Student").ToList();
var asCount = db.Queryable<object>().AS("student").Count();
var in1 = db.Queryable<Student>().In(it => it.Id, new int[] { 1, 2, 3 }).ToList();
var in2 = db.Queryable<Student>().In(new int[] { 1, 2, 3 }).ToList();
int[] array = new int[] { 1, 2 };

View File

@@ -400,7 +400,10 @@ namespace SqlSugar
reval = this.SelectValue.ObjToString();
this.SelectCacheKey = reval;
}
if (reval.IsNullOrEmpty())
{
reval = "*";
}
return reval;
}
public virtual string GetWhereValueString