c# - ASP.NET MVC View Model with LINQ To Entities -


Assume that I am creating a query result

  var query = one to tblXYZ Join the new {ax, bx} in tblABC at c A.id = b.id;  

What is the best way to pass it into a single scene? Should I make a new object and copy the query result in it?

I think it's almost always favorite to create a visual-specific model in the mechanism I control To get the query executed and close to see the list, the second suggestion of @ Mark will also be given. If you have a problem with any question, then diagnosing it is very easy to diagnose, instead of executing the query in the controller. Stack trace is actually useful at that point.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -