Entity Framework Role Manager error

Hi Alexey.

The error message you’re seeing there is because IdentityRoleClaim.Id is an integer key and so needs a value. I would imagine the MariaDB provider you were using is able to generate one as it is a relational non-replicated server.

We don’t have the facility to provide auto-incremented integers as they would not scale well in high-volume environments with multiple servers.

If you have the ability to manually set it in your code by checking some reliable source for an unused integer you could try that.

1 Like