title: How do I initialise a new object that has a one-to-one relationship to another entity and then add that new object to the database?
body: <p>I'm just starting to get the hang of Entity Framework 4 but there are still a few things that I'm struggling with, this problem is the latest and I was wondering if anyone would be so kind as to point me in the right direction?  </p>
  
  <p>I have a number of fairly simple entities in my model but one of them has a one-to-one relationship defined to another entity and I can't seem to find the right sequence of events to add a new instance of that entity to the database successfully.  </p>
  
  <p><strong>A simplified example</strong>  </p>
  
  <p>I have a Student entity and a Nationality entity and a Student
  has a one-to-one relationship to a Nationality  </p>
  
  <p>I am creating a new student entity to add to the database and
  I can't persist it without first setting a nationality to satisfy
  the one-to-one relationship.  </p>
  
  <p>I have a Nationality of "Not Known" as one of my Nationality entities in the database and I want this to be the initial value for my new student record.  </p>
  
  <p>How do I go about creating that new student, creating the initial reference to the "Not Known" nationality entity and then adding the new student record to the database in such a way that everything happens in the right order?</p>
  
  <p>I am just using the standard classes generated alongside the model, I've had a look at STE's and POCO types but I decided to take a step back and learn the basics first.</p>