When you need more than one class the way to do it is to add a class for that purpose:
public class TheOneModelForView
{
public ClassA ObjectA { get; set; }
public ClassB ObjectB { get; set; }
}
By the way as soon as your application begin to be somewhat more complex, there will be cases where models generated from the database won't match the need for your views.
You can also uses different partial views for different part of the page. Thus, you might then be able to automatically generate the code for the partial view using an object of the appropriate type (say
ClassA
) and then pass that sub-part of the model when rendering the view. Something like:
Model.RenderPartial("PartialViewForA", Model.ObjectA);
If you need a new class then don't retrict yourself to existing classes.