Do we have to use type in SQL query in ASP.NET MVC ?
I want to get a result that has no type defined before. Let’s say:
select TABLE1.X, TABLE2.Y from TABLE1,TABLE2
How can I get this query’s result? There are classes for TABLE1 and TABLE2, but none for result. Is it necessary that I construct an object that fit for the result?
If you use a
DataReaderyou can use each field as you want.And you don’t have to create any object.