Cannot insert explicit value for identity column in table 'blog_Content' when IDENTITY_INSERT is set to OFF.
自增主键不能插入主键有值的数据?
如果用的是code first 的话,可以使用fluent api 设置主键
this.Property(b => b.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
HasKey(p => p.Id);