Update MySql

This commit is contained in:
sunkaixuan
2017-11-07 15:20:41 +08:00
parent 42a0611dfe
commit f84ad5c799
2 changed files with 7 additions and 0 deletions

View File

@@ -332,6 +332,7 @@ namespace OrmTest.Demo
{
var db = GetInstance();
var t1 = db.Queryable<Student>().Where(it => SqlFunc.ToLower(it.Name) == SqlFunc.ToLower("JACK")).ToList();
var t2 = db.Queryable<Student>().Where(it => SqlFunc.IsNull(it.Name, "nullvalue") == "nullvalue").ToList();
//SELECT [Id],[SchoolId],[Name],[CreateTime] FROM [Student] WHERE ((LOWER([Name])) = (LOWER(@MethodConst0)) )
/***More Functions***/