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
Post a Comment