The type of model1 and model2 all depend on the linq query. The linq query itself either specifies a type or generate an anonymous type. If you want to build a view model you can either change youre linq query to return a pre defined model type. or you can
make your view model have type dynamic for both model1 and model2.
CodeHobo
All-Star
18669 Points
2648 Posts
Re: what are the types of these properties in my model
Apr 25, 2012 08:57 PM|LINK
The type of model1 and model2 all depend on the linq query. The linq query itself either specifies a type or generate an anonymous type. If you want to build a view model you can either change youre linq query to return a pre defined model type. or you can make your view model have type dynamic for both model1 and model2.
What does your complete linq query look like?
Blog | Twitter : @Hattan