Add Sqlfunc.CharIndex

This commit is contained in:
sunkaixuan
2019-05-14 13:11:07 +08:00
parent 91213483aa
commit 3d88df0e3d
8 changed files with 34 additions and 0 deletions

View File

@@ -16,6 +16,17 @@ namespace OrmTest
Async();
NoEntity();
Mapper();
SqlFuncTest();
}
private static void SqlFuncTest()
{
Console.WriteLine("");
Console.WriteLine("#### SqlFunc Start ####");
var db = GetInstance();
var index= db.Queryable<Order>().Select(it => SqlFunc.CharIndex("a", "cccacc")).First();
Console.WriteLine("#### End Start ####");
}
private static void Mapper()