Hello,
I have a asp.net core 2.0 mvc web project (in a solution).
I want to write a console asp.net core application in order to compute some statistics at night.
I want to access web project functionalities from my console application.
The console application is in the same solution. So I have tried to add a reference. It works but i do not know how to deal with dependency injection from the console application.
(i need to access dbcontext).
What is the best practice to do this ?
Thanks