摘要: 第一步: 把这个provider放到静态变量里 var app = builder.Build(); StaticLists.ServiceProvider = app.Services; 第二步: 使用静态变量创建 scope using (var scope = StaticLists.Serv 阅读全文
posted @ 2025-05-04 08:06 星星c# 阅读(24) 评论(0) 推荐(0)