Hello,
What should i return from a WCF service when using Linq?
Eg :-
var res = from q in context.cust select q;
The Linq follows Deferred Execution and thus the statement doesn't do anything until a for loop is ran. This means i can't just return res. Then what should i return? Do i need to write a for loop and populate objects and return it's List everytime i want to return data from WCF service? Is there no equivalent of ADO.NET DataSet which follows disconnected architecture and is ideal for moving data between different tiers and from web service or WCF service?
Thanks in advance :)