Thanks Smart Man,
I already found those links, but it doesn't help me. It seems to be very difficult and not talk about linq to Sql.
var ParentCategory = from categories in dataContext.Categories
where categories.CategoryId = categoryId
select categories.ParentCategoryI
The recursion means to reuse this query to get the parent of this ParentCategoryId from my submitted CategoryId ...
Your link doesn't show any linq to Sql queries or could you tell me the way to implement such a recursive query?
Main Topics
Browse All Topics





by: Smart_ManPosted on 2008-02-01 at 00:43:55ID: 20795027
http://www.pluralsight.com /blogs/jef fsch/archi ve/2006/08 /18/ 33631. aspx
archive/11 8/153-123- 1183772.sh tm
h/archive/ 2007/10/01 /taking-li nq- to-obje cts-to-ext remes-a-fu lly-linqif ied-raytra cer.aspx
http://www.msdner.net/dev-
http://blogs.msdn.com/luke
waiting for your reply