Some newbie help on LINQ to SQL Its a really nice feature that if your linq to sql query returns a row previously returned, you end up getting the same entity: but not so clear from the documentation how this really works. For example, given a table MyFoos (primary key "ID") accessed throught DataContext "FooContext": Qry1 = FROM MyFoo1 IN FooContext.MyFoos Select MyFoo1 WHERE MyFoo1.ID = "123" Qry2 = FROM MyFoo2 IN FooContext.MyFoos Select MyFoo2 WHERE MyFoo2.ID = "123" FooElement1 = Qry1.Single
Read More...