title: Multiplicity constraint violated. DB first EF 4.1
body: <p>I have the following model:
  <img src="https://i.stack.imgur.com/3E666.png" alt="EDMX"></p>
  
  <p>the i run the following to add a new user:</p>
  
  <pre><code>    using (var context = new CamelotDB())
      {
          Console.WriteLine("Creating Test User");
          DomainEntity userToAdd = new DomainEntity()
          {
              EntityName = "Test User",
              EntityType = DomainEntity.eEntityType.User,
              EntityCreationDate = DateTime.Now,
              EntityLastUpdateDate = DateTime.Now,
              EntityCreatorUserID = 0,
              Creator = context.DomainEntities.Find(0),
              EntityUpdaterUserID = 0,
              Updater = context.DomainEntities.Find(0),
              EntityParentID = null,
              UserDetails = new User()
              {
                  Username = "TestUser",
                  Password = "123",
                  Email = "TestUser@Test.org",
                  FirstName = "Test",
                  LastName = "User",
                  Phone = "123456789"
              }
          };
  
          Console.WriteLine("Adding user to Database...");
          userToAdd = context.DomainEntities.Add(userToAdd);
          context.SaveChanges();
  
      }
  </code></pre>
  
  <p>And I get the following error:
  Multiplicity constraint violated. The role 'User' of the relationship 'CamelotShiftManagement.DAL.DomainEnttyFK1' has multiplicity 1 or 0..1.![enter image description here]</p>