Filter Bug

This commit is contained in:
sunkaixuan
2019-04-09 19:20:24 +08:00
parent 6a3d26e51b
commit 262a4be1d1
4 changed files with 6 additions and 6 deletions

View File

@@ -8,8 +8,8 @@ namespace OrmTest
{
public class Config
{
public static string ConnectionString = "server=localhost;Database=SqlSugar4xTest;Uid=root;Pwd=root";
public static string ConnectionString2 = "server=localhost;Database=SQLSUGAR4XTEST;Uid=root;Pwd=root";
public static string ConnectionString3 = "server=localhost;Database=sqlsugar4xtest;Uid=root;Pwd=root";
public static string ConnectionString = "server=localhost;Database=SqlSugar4xTest;Uid=root;Pwd=haosql";
public static string ConnectionString2 = "server=localhost;Database=SQLSUGAR4XTEST;Uid=root;Pwd=haosql";
public static string ConnectionString3 = "server=localhost;Database=sqlsugar4xtest;Uid=root;Pwd=haosql";
}
}

View File

@@ -17,7 +17,7 @@ namespace OrmTest.Demo
//gobal filter
var db = GetInstance1();
var sql = db.Queryable<Student>().ToSql();
var sql = db.Queryable<Student>().OrderBy(it=>it.Id).ToSql();
//SELECT [ID],[SchoolId],[Name],[CreateTime] FROM [STudent] WHERE isDelete=0
var sql2 = db.Queryable<Student, School>((f, s) => new object[] { JoinType.Left, f.SchoolId == s.Id }).ToSql();