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...