I set the table Forums_Group's Name column with unique constraint.
And when i insert data,i get the error "System.InvalidOperationException:“The property 'Id' on entity type 'ForumGroup' has a temporary value while attempting to change the entity's state to 'Unchanged'. Either set a permanent value explicitly or ensure that the database is configured to generate values for this property.” at
method GetFullErrorTextAndRollbackEntityChanges in EfRepository class .
I search it online,and some people said it is bug of Entity Framework Core,might be this info can help you to resolve this.
Thanks.