title: Getting Identity Column of new record in Entity Framework?
body: <p>Can anyone help? I have been using the entity framework and its going well :-)</p>
  
  <p>But i have just added a new record using an entity class like so</p>
  
  <p>this._entities.AddToUsers(user);</p>
  
  <p>The AddTo is created automatically .. and users is my table... All great but how do i return the identity column?</p>
  
  <p>The sounds like just what i need instead of calling a stored procedure, I did have a stored procedure before -</p>
  
  <p>I suppose i can continue using the stored procedure but this means i have to convert my User entity class to Sql parameters.</p>
  
  <p>I am using EFExtensions.</p>
  
  <p>And once added do i need to call SaveChanges or something?</p>
  
  <p>Any ideas ??</p>
  
  <p>Thanks</p>