mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update user test case
This commit is contained in:
@@ -11,7 +11,11 @@ namespace OrmTest
|
|||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
var _db = NewUnitTest.Db;
|
var _db = NewUnitTest.Db;
|
||||||
|
_db.CurrentConnectionConfig.MoreSettings = new ConnMoreSettings()
|
||||||
|
{
|
||||||
|
IsAutoUpdateQueryFilter = true,
|
||||||
|
IsAutoDeleteQueryFilter = true,
|
||||||
|
};
|
||||||
_db.QueryFilter.AddTableFilter<IDeleted>(it => it.IsDelete == false);
|
_db.QueryFilter.AddTableFilter<IDeleted>(it => it.IsDelete == false);
|
||||||
|
|
||||||
_db.CodeFirst.InitTables(typeof(PostInfoEntity));//创建表
|
_db.CodeFirst.InitTables(typeof(PostInfoEntity));//创建表
|
||||||
|
Reference in New Issue
Block a user