Hi @Ali Sufian ,
Please check the definition of the IdentityRoleClaim<Tkey>
or the Identity data source. As we can see that, the Tkey
is the type of the primary key of the role associated with this claim (the RoleId Property), instead of the Id
Property. So, the Id
property still is the int
type.
Besides, for the Id
property, the Identity defines it as an int
, if you try to override this property, it will show the ApplicationRoleClaim.Id': type must be 'int' to match overridden member 'IdentityRoleClaim<Guid>.Id'
error. So, I suggest you could try to create a new property to store the Guid
value.
------
If the answer doesn’t solve your issue, please provide more details of error that will help us track down what’s happening.
If the answer is helpful, please click "Accept Answer" and vote it up.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
Dillion