From: Paul on
I have a Sql Server DB with two tables, customer and order, and from
the Visual Studio2008 do a DataContext of this bbdd.
If from the code when I have a client, to get their orders do
something similar to "myCustomer.Orders" and with this I will return
the customer orders in question.
So far so perfect..
But now add in the designer's DataContext, otherwise, it is not in the
DB, a class called Enterprise, which has a field that is idCustomer,
and I make this association in the DataContext. Why with the code can
not do myCustomer.Enterprises?