I am trying to migrate my asp.net core application from using Azure SQL database to use CosmosDB database.
Facing an issue when trying to create collections with the following error messages:
System.InvalidOperationException: 'The entity type 'IdentityRole' has property 'ConcurrencyStamp' as its concurrency token, but only '_etag' is supported. Consider using 'EntityTypeBuilder.UseETagConcurrency'.'
I have tried these changes, none of them solve the issue.
- I added
UseETagConcurrencywhen building the modelbuilder.Entity<IdentityRole>().ToContainer("Roles").UseETagConcurrency(); - I create new derived class from
IdentityRole, added_etagproperty toRolemodel
Any ideas on how to resolve this issue?
Thank you for your assistance.