Multiple models sent to a single view instance
My terminology is probably way off here but basically I’m trying to pass multiple data models to a view. To help put the question in context, take this example:
My terminology is probably way off here but basically I’m trying to pass multiple data models to a view. To help put the question in context, take this example:
I am just learning ASP.net MVC so please bear with me if I am bad at explaining my issue.
When I create Entity Model in my ASP.NET application it adds “s” at the end of each entity name, i.e. if my table name is “SiteUser” in database it becomes “SiteUsers” in Entity Model. How can I prevent it?
I think the best way to ask this question is with some code… can I do this: