Update user test case

This commit is contained in:
sunkaixuan 2024-03-05 16:54:50 +08:00
parent 600bcd3a82
commit 8b5f5c3a82

View File

@ -11,7 +11,11 @@ namespace OrmTest
public static void Init()
{
var _db = NewUnitTest.Db;
_db.CurrentConnectionConfig.MoreSettings = new ConnMoreSettings()
{
IsAutoUpdateQueryFilter = true,
IsAutoDeleteQueryFilter = true,
};
_db.QueryFilter.AddTableFilter<IDeleted>(it => it.IsDelete == false);
_db.CodeFirst.InitTables(typeof(PostInfoEntity));//创建表