Browse Source

Fix getting started MVC document.

pull/138/head
Halil İbrahim Kalkan 9 years ago
parent
commit
6724423249
  1. 13
      docs/Getting-Started-AspNetCore-Application.md
  2. 2
      samples/BasicAspNetCoreApplication/BasicAspNetCoreApplication/AppModule.cs

13
docs/Getting-Started-AspNetCore-Application.md

@ -139,7 +139,18 @@ Replacing AspNet Core's DI system by Autofac and integrating to ABP is easy.
Install-Package Volo.Abp.Autofac
````
2. Change ``services.AddApplication<AppModule>();`` line in the ``Startup`` class as shown below:
2. Add ``AbpAutofacModule`` Dependency
````C#
[DependsOn(typeof(AbpAspNetCoreMvcModule))]
[DependsOn(typeof(AbpAutofacModule))] //Add dependency to ABP Autofac module
public class AppModule : AbpModule
{
...
}
````
3. Change ``services.AddApplication<AppModule>();`` line in the ``Startup`` class as shown below:
````C#
services.AddApplication<AppModule>(options =>

2
samples/BasicAspNetCoreApplication/BasicAspNetCoreApplication/AppModule.cs

@ -4,11 +4,13 @@ using Microsoft.Extensions.DependencyInjection;
using Volo.Abp;
using Volo.Abp.AspNetCore.Modularity;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.Autofac;
using Volo.Abp.Modularity;
namespace BasicAspNetCoreApplication
{
[DependsOn(typeof(AbpAspNetCoreMvcModule))]
[DependsOn(typeof(AbpAutofacModule))]
public class AppModule : AbpModule
{
public override void ConfigureServices(IServiceCollection services)

Loading…
Cancel
Save