数据库种子初始化搭建

This commit is contained in:
陈淳
2022-09-19 17:25:43 +08:00
parent e8bb256a8d
commit 5785f5beea
8 changed files with 265 additions and 30 deletions

View File

@@ -20,7 +20,7 @@ namespace Yi.Framework.WebCore.MiddlewareExtend
if (Appsettings.appBool("RedisSeed_Enabled"))
{
var _cacheClientDB = ServiceLocator.Instance.GetService<CacheClientDB>();
var _cacheClientDB = app.ApplicationServices.GetService<CacheClientDB>();
try
{