数据库种子初始化搭建
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user