Can I use the Code First Entities as ViewModels in Entity Framework C#? -


I'm tired of using two models to model a model and then a visual model for the user.

I am surprised, because I can not find it anywhere else, if I can see models using models from model? Can I pass institutions from the database and can I do them from those ideas?

I'm pretty sure that I read somewhere that living in the scene using entities and connections. It was the reason not to use it.

Any explanation on this matter would be great!

Emailing is a model for the tired of using two models and then the user's A visual model for

Interesting design philosphy

I'm thinking, because I'm not getting anywhere else, if I could use model models of models from models Am I

Yes, try the MVC view common templates You can enter model squares and references. If you refer the Web project to your model project, the View Generation template allows you to choose from other projects.

Can I pass entities to the database and pass them into those scenes?

Yes the web project can reference core / model project. You can call any other project

I am certain that somewhere I have read that institutions and connections live in the scene while using it. It was the reason not to use it.

Reference life cycle is best kept yes yes. There are at least 1 or too many references to each request for each request. The loft / sample code is completely unrelated to the model as the best starter kit.

Any explanation on this matter would be great! Check the template support / maccasting in the MVC view.

Reading a little more on the topic can help.


Comments