I'm new to Linq-SQL and have used the O/R designer to generate my data classes.
My main data table has a couple of 1:M (child-parent) relationships and these associations have been set up in the designer.
What I want to be able to do is something like:
Child c = new Child();
Parent p = new Parent();
p.Children.Add(c);
The Properties pane for the association contains the table name (pluralised) as the name of the child property, but the Parent class generated by the designer doesn't have a collection of Children (or even "Childs").
I've read elsewhere that it is best to let the designer get on with it (see e.g. the comments on this question), but the auto-generated code doesn't seem to give me what I need.
How can I tell the designer to create the necessary collection properties? Alternatively, how would I go about doing it by hand?