Merge remote-tracking branch 'origin/master'
# Conflicts: # Bunny.Service/IService/Service/BlogService.cs # Bunny.WebApi/Configuration/AddAutofacConfig.cs # Bunny.WebApi/Configuration/BaseConfig.cs # Bunny.WebApi/Controllers/BlogController.cs # Bunny.WebApi/Database/bunny.db # Bunny.WebApi/Database/bunny.db-shm # Bunny.WebApi/Database/bunny.db-wal
This commit is contained in:
commit
0761fceaf1
|
@ -18,7 +18,7 @@ public static class AddAutofacConfig
|
|||
builder.RegisterAssemblyTypes(typeof(Program).Assembly)
|
||||
.Where(t => controllerBaseType.IsAssignableFrom(t) && t != controllerBaseType)
|
||||
.PropertiesAutowired(); //支持属性注入
|
||||
|
||||
|
||||
// 注入EfCore上下文对象
|
||||
builder.RegisterType<EfCoreContext>();
|
||||
|
||||
|
|
Loading…
Reference in New Issue