c# - Creating a model that references two other models -


i'm working asp.net mvc5 , following code-first method of development application.

i'm having trouble understanding best course of action take in situation. have default asp.net application user model , created event model. application users can have multiple events. want create profile page, pulls data application user model , event model. reading through bunch of different posts seems create viewmodel? confusing because means mixing elements of mvvm , mvc?

is best course of action? me doesn't make sense create new model combines these items together, in addition code first method, new table created model not want happen.


Comments

Popular posts from this blog

python - Mongodb How to add addtional information when aggregating? -

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

java - Incorrect order of records in M-M relationship in hibernate -