4.2.1.8 SqlFunc.GetSelfAndAutoFill BUG

This commit is contained in:
sunkaixuan
2017-07-22 12:58:59 +08:00
parent 920d239094
commit 05d89742ab
3 changed files with 7 additions and 4 deletions

View File

@@ -106,6 +106,9 @@ namespace OrmTest.UnitTest
.Select(it => new { it.Id, it.Name,x=it.Id }).ToSql();
base.Check("SELECT [ID] AS [Id] , [Name] AS [Name] , [ID] AS [x] FROM [STudent] WHERE [Id] IN (@InPara0) ", new List<SugarParameter>() {
new SugarParameter("@InPara0",1) },t9.Key,t9.Value, "single t9 error");
var t10 = db.Queryable<Student>().Select(it => new StudentEnum() { Id = SqlFunc.GetSelfAndAutoFill(it.Id) }).ToSql();
base.Check("SELECT * FROM [STudent] ", null, t10.Key, t10.Value, "single t10 error");
}
}
}