How do I access data in a view in Razor?
问题 In standard WebForms, I would have a handful of properties, and set those. Then the Web Page would bind to them, for example with <%#CustomerName%> . I understand that MVC is a different approach, but there must still be a basic need for displaying data from multiple sources at the same time. I can see that if I use @Model then it will access the data set in the controller. But what if You want to display data from 2 or 3 separate items? If I want to display a Customer , their address and