2015-10-16 48 views

回答

2

正在HasKey方法結果中查找此選項。 不過它在屬性:

entity.Property(e => e.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);