How to create an ASP.NET MVC class library -


i want create class library mvc 4 web application. every search i've tried has returned plenty of references merely mention creating one, or importance of doing so, not specifics of how.

my first assumption template under web in visual studio new project dialog, no. unsure if use class library template under windows, did.

i want include things data access (e.g., dbcontext), while intellisense sees system.data.entity namespace, there no classes available. guess need additional references, no idea ones. looking @ references in main mvc project, @ lot of them pointing packages folder. i'm unsure if should doing same.

in short, i'm looking instructions on how create class library mvc in visual studio, including necessary references ef, razor , whatever else.

use nuget add references pieces of functionality, ef , system.web.mvc, need in class library or libraries.

a data access project handle persistence , class library hold html helpers might want reuse both make sense. razor views if you're using razorengine rendering stack can interesting able test.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -