I am going to develop enterprise application and have many project in solution problem is suppose 1- Webapi project 2- Services project 3- DataModel project
Webapi project calls services project and Services project calls DataModel project problem is I have to add both(Services, DataModel) projects dll in Webapi project and add all classe and interface in Startup class like
public void ConfigureServices(IServiceCollection services)
{
services.AddTransient<IDocConverterProAuth, DocConverterProAuthentication>();
services.AddTransient<IFileConverter, FileConverter>();
services.AddTransient<IFileConversionService, FileConversionService>();
}
But I have 50 project and hundreds class. I have to add all references in Webapi project. I thing it is not correct way because DataModel project is not used in Webapi project only Services project uses DataModel project so resolve dependency in Services project so kindly guide me how I possible my development environment is
1- Visual studio enterprise 2017 2- .net core 2.1 3- C#