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