Intelligence Ignore

This commit is contained in:
sunkaixuan
2017-11-23 16:29:24 +08:00
parent d4afab2e19
commit 2aeb64cad2
2 changed files with 3 additions and 2 deletions

View File

@@ -509,7 +509,8 @@ namespace OrmTest.Demo
.Select((st, sc) => sc) .Select((st, sc) => sc)
.Take(1).ToList(); .Take(1).ToList();
var s9 = db.Queryable<Student>().Select(it=>it.Name).First(); var s9 = db.Queryable<Student>().Select(it=>new Student() { Id=it.Id, TestId=1, Name=it.Name, CreateTime=it.CreateTime }).First();
var s10 = db.Queryable<Student>().Select(it => new Student() { Id = it.Id}).First();
} }
private static void Sqlable() private static void Sqlable()
{ {

View File

@@ -117,7 +117,7 @@ namespace SqlSugar
} }
} }
} }
if (IsIgnore(type, propertyInfo)) if (IsIgnore(type, propertyInfo)&&!this.ReaderKeys.Any(it=>it==fileName))
{ {
continue; continue;
} }