mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-25 01:14:33 +08:00
Update unit test
This commit is contained in:
parent
2850b3d1a8
commit
8dbc0ac2f3
@ -25,7 +25,7 @@ namespace OrmTest
|
|||||||
Subjects = SqlFunc.Subqueryable<Subject>().LeftJoin<JournalSubject>((s, js) => s.Id == js.SubjectId).Where((s, js) => js.JournalId == j.Id).ToList(s => s.Name),
|
Subjects = SqlFunc.Subqueryable<Subject>().LeftJoin<JournalSubject>((s, js) => s.Id == js.SubjectId).Where((s, js) => js.JournalId == j.Id).ToList(s => s.Name),
|
||||||
});
|
});
|
||||||
var a = abc.ToSqlString();
|
var a = abc.ToSqlString();
|
||||||
if (a != "SELECT *,`j`.`Id` as app_ext_col_0 FROM `Journal` `j` ")
|
if (a != "SELECT *,`j`.`Id` as app_ext_col_0 FROM `Journal` `j` ")
|
||||||
{
|
{
|
||||||
throw new Exception("unit error");
|
throw new Exception("unit error");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user