Add unit test

This commit is contained in:
sunkaixuan 2023-10-03 13:18:52 +08:00
parent 6a8e49623a
commit 6149033b0e

View File

@ -1,4 +1,5 @@
using System; using SqlSugar;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
@ -15,6 +16,8 @@ namespace OrmTest
x=it.Id==1 x=it.Id==1
}).ToList(); }).ToList();
Test(new UnitbModel()); Test(new UnitbModel());
var sql=db.Queryable<Order>().Where(it => SqlFunc.FullTextContains(new string[] {it.Name, it.Name }, "a")).ToSql();
} }
public static void Test(UnitbModel model) public static void Test(UnitbModel model)