title: Creating Entity Framework Table That Does Not Have Auto Increment Id
body: <p>Using Entity Framework SQL-Server-CE I have created a table like this:</p>
  
  <pre><code>class Era {
      public long Id { get; set; }
      [Index(IsUnique=true), Required]
      public long Code { get; set; }
      public string Name { get; set; }
      public long StartDate { get; set; }
      public long EndDate { get; set; }
  }
  </code></pre>
  
  <p>Whenever I try to insert into it using Entity Framework, the <code>Id</code> field of the <code>Era</code> object is ignored and an auto incremented <code>Id</code> is inserted.</p>
  
  <p>How can I make the <code>Id</code> field not to use the auto incremented value, and use the given value instead, using annotations preferably.</p>