title: Entity Framework Id auto incrementing
body: <p>Have a problem with incrementing.
  I created a new object and tried set it into my DB I received an error of data violation. The index in table wasn't increased (Id=0). 
  Id - set as primary key in SQL table and the <code>StoredGeneratedPattern</code> property of field "Id" in EDM set as "Identity" so, obviously, it must be incremented automatically.</p>
  
  <pre><code>public void AddPhone(UserPhone phone)
  {
      context.AddToUserPhone(phone);
      context.SaveChanges();
  }
  </code></pre>
  
  <p>I can't understand why.</p>