title: Entity framework always returning Id 1 when adding contact?
body: <p>I created a test and it kind of works when I save an object, the problem is that the creation of an object always returns the Id = 1 no matter how many insertions I make, so when I set that same variable as the id it goes and grabs the first one in the table instead of the just inserted one, here is the code:</p>
  
  <pre><code>using (DbContextTransaction tx = this.Context.Database.BeginTransaction())
  {
      CustomPerson con = new CustomPerson();
      con.Name = "John";
      con.LastName = "Smith";
  
      this.Context.CustomPersons.Add(con);
  
      //here tempId it's always 1 (why), but it inserts the record with a different id
      long tempId= this.Context.SaveChanges();
  
      CustomPerson newPerson = (CustomPerson)this.Context.CustomPersons.Find(tempId);
      Assert.AreEqual(newPerson.Name, con.Name);
      tx.Commit();
  }
  </code></pre>
  
  <p>And with this it will go and retrieve the record at position 1 in the table, instead of the newly created one in the table which is a value greater than 1 always.</p>