SYSMATRIX (1) [Avatar] Offline
#1
I have the following codes. How I can return the LINQ result as either dataset/datatabl or dataview?


public IQueryable<TransactionHistory> getTransactionHist(Int32 productID)
{

linqAdventureWorksDataContext linqAW = new linqAdventureWorksDataContext();


var ProductTran = (from m in linqAW.TransactionHistories
where m.ProductID == productID
select m);



return ProductTran;
}
fabrice.marguerie (224) [Avatar] Offline
#2
Re: How to return a dataset/datatabl or dataview from LINQ
We demonstrate this in chapter 14. The good news for you is that this chapter is available for free. Visit the book homepage to find it.
See also the source code archive.
jwooley (123) [Avatar] Offline
#3
Re: How to return a dataset/datatabl or dataview from LINQ
We discuss this briefly in the free bonus chapter 14. See http://www.manning.com/marguerie/ to read this chapter.