fix: stabilize bot polling and simplify tasks
This commit is contained in:
1 parent
3c1e54ec4f
commit
1758680f3d
14 files changed
+664
-148
No files matched your search
@@ -13,7 +13,11 @@ public static class ServiceCollectionExtensions
|
||||
{
|
||||
// 注册数据库上下文
|
||||
services.AddDbContext<AppDbContext>(options =>
|
||||
options.UseSqlite(connectionString));
|
||||
options.UseSqlite(connectionString, sqlite =>
|
||||
{
|
||||
// 避免 Include 多个集合导航时的“笛卡尔爆炸”与性能警告
|
||||
sqlite.UseQuerySplittingBehavior(QuerySplittingBehavior.SplitQuery);
|
||||
}));
|
||||
|
||||
// 注册所有Repository
|
||||
services.AddScoped<IAccountRepository, AccountRepository>();
|
||||
|
||||
Reference in new issue
Block a user