title: How to configure Key Identity column in Entity Framework 7?
body: <p>I have the following Mapper in Entity Framework <strong>7 RC1</strong>:</p>
  
  <pre><code>  b.ToTable("Categories");
    b.HasKey(x =&gt; x.Id);
    b.Property(x =&gt; x.Id) ... ??
  </code></pre>
  
  <p>How to make Id and identity column in EF 7 RC1?</p>
  
  <p>The SQL equivalent is:</p>
  
  <pre><code>Id int identity not null
  </code></pre>
  
  <p>I've read that would be like this:</p>
  
  <pre><code>b.Property(x =&gt; x.Id).ForSqlServer().UseIdentity();
  </code></pre>
  
  <p>But in EF7 RC1 I do not find ForSqlServer(). I do find:</p>
  
  <pre><code>.ForSqlServerHasComputedSql()
  .ForSqlServerHasColumnName()
  .ForSqlServerHasColumnNameType()
  .ForSqlServerHasDefaultValue()
  .ForSqlServerHasDefaultValueSql()
  .ForSqlServerUseSequenceHiLo()
  ...
  </code></pre>