Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Console application for batch

$
0
0

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


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>