mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 16:18:47 +08:00
Add unit test
This commit is contained in:
parent
b382d5ca4b
commit
50f2a0a46e
@ -14,6 +14,14 @@ namespace OrmTest
|
|||||||
db.Queryable<EmpLicenseLogOff>()
|
db.Queryable<EmpLicenseLogOff>()
|
||||||
.Where(it => it.EmpLicense.EmpInformation.EmpDepartmentJobs.Any())
|
.Where(it => it.EmpLicense.EmpInformation.EmpDepartmentJobs.Any())
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
|
var sql = db.Queryable<Order>()
|
||||||
|
.Where(b =>
|
||||||
|
$"{b.Name}^{b.Name}^{b.Name}^{b.Id}^{1} ".Contains("a")).ToSqlString();
|
||||||
|
if (!sql.Contains("'[Name]^[Name]^[Name]^[Id]^ 1 ' like"))
|
||||||
|
{
|
||||||
|
throw new Exception("unit error");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user