MVC and separate projects
问题 I am new to MVC. I'd like to have my data objects in a separate project from my main MVC project. Would I just move ALL the classes and files from my 'models' folder to my new all project, and then add a reference to the new data project in my MVC project? How would I then make used of the models, both in my controllers (still in the MVC project) as well as within my views? 回答1: You are going in the right direction. In fact, for all but the most trivial projects, I like to have my model in a