I am trying to break down the architecture into three independent layers Data/Logic and App (Web/Service/Application/W
As posted on my previous question http://www.experts-exchange.com/Programming/Languages/.NET/LINQ/Q_25355958.html
I have now set up my objects in ABC.Data and my DataContext in ABC.Logic
However, what I am running in to is that I can only return objects in my ABC.Data library.
How do I handle selecting Customer Information as well as other columns relevant to the query and returning it to the APP layer without having to create classes?
// I CANT RETURN A LIST OF CUSTOMER AND STATE INFO LIKE SPECIFIED IN THE QUERY
taContext db = this;
from c in db.Customers
join cl in db.CustomerLocations on c.CustomerId equals cl.CustomerId
where cl.USState.USStateAbbr == StateName
select c, cl
Hope this explains what I am trying to do.