LINQ in Action roller

LINQ to SQL Queries -- when is the database hit? How are instance identitys maintained?

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...
Published Wednesday, December 26, 2007 10:58 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication