🍅 fix(SeedData): 初始化种子数据时忽略过滤器
This commit is contained in:
parent
3705a89419
commit
d4a7dd7856
@ -437,6 +437,7 @@ public static class SqlSugarExtension
|
||||
// 执行前处理种子数据
|
||||
if (handleBefore != null) foreach (var sd in seedData) handleBefore(sd);
|
||||
|
||||
dbProvider.QueryFilter.ClearAndBackup();
|
||||
int total, insertCount = 0, updateCount = 0;
|
||||
if (entityType.GetCustomAttribute<SplitTableAttribute>(true) != null)
|
||||
{
|
||||
@ -476,6 +477,7 @@ public static class SqlSugarExtension
|
||||
}
|
||||
}
|
||||
}
|
||||
dbProvider.QueryFilter.Restore();
|
||||
return (total, insertCount, updateCount);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user