Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to use models from Nuget Package when adding API controller using code generator

$
0
0

When adding an API Controller with actions using Entity Framework you select which Model the controller is based on and its DbContext in the following screen:

Add API Controller:

My models are in a nuget package that I created since other projects need those models too. How to select those models that are in my Nuget Package in the 'Model class' dropdown?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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