title: Performing an IDENTITY_INSERT using EF5 Code First Migrations
body: <p>I have a POCO that I am trying to create via Code First Migrations and then seed data.  The problem is that I want to insert specific values into the identity column when seeding. </p>
  
  <p>Here is my POCO</p>
  
  <pre><code>public class Result
  {
      public long ResultId { get; set; }
      public long? TeamId { get; set; }
  
      public Team Team { get; set; }
  }
  </code></pre>
  
  <p>And here is my AddOrUpdate call in the Seed method of the Configuration.cs</p>
  
  <pre><code>context.Results.AddOrUpdate
      (
           r =&gt; r.ResultId,
           new Result { ResultId = 101, TeamId = null },
           new Result { ResultId = 201, TeamId = null }
      );
  </code></pre>
  
  <p>As expected, it does not insert the values of 101 and 201, but instead 1 and 2.  Are there any DataAttributes I can apply to the model to help with this?</p>