Let the database do it. EF takes care of creating the PK and automatically backlinking the child entities. If you create an order object, and attach child lineitems (via a List<LineItem> collection) EF will automatically fix up the PKs for you. That's one of hte reasons you want to use an ORM in the first place so you don't have to worry about key generation.
My old business object framework used to do exactly the same thing as wwBusiness, but it's simply better to let the database handle this sort of thing for you and then read back the generated new key if necessary.
+++ Rick ---