In LINQ to SQL, is InsertOnSubmit() required when adding via a Foreign Key?
I.e. If I have code that does the following, where orders and order lines are linked in the dbml and database via a foreigh key:
- Create order.
- Add order to datacontext orders.
- Create order line.
- Add to order.Lines.
Do I still need to add the order line to the context.OrderLine collection?