LINQ in Action roller

Linq to SQL EntitySet property double up?

I have an Sql Server database that contains a table for clients and a table for visits the clients make to the shop. The tables are indexed on the client table primary key ClientId. I used the linq to sql designer to create a data context, which produced all my business classes. The produced client class has a property EntitySet Visits. If I do something like (assume client "1" has no visits currently)... Code Snippet ClientDBContext db = new ClientDbContext(); Client client = db.Clients.Single(client Read More...
Published Monday, February 25, 2008 2:03 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication