0

I'm using .Net Identity and I have different types of users (RegualrUser, OrganizationUser). Both of them are users.. that is, they can log in to my site.

I want to save additional information for each type, and that information is different, meaning that the first type, RegualrUser, has different properties than the second type, OrganizationUser.

Here in this answer User Claims are recommended. In fact, I am not convinced... because it is possible that these different properties are not just a value and type, but may be a relationship to another table in the database (a navigational feature).

Plus the User Claims are a difficult part for me, i didn't get what is difference between (User Claims, Identity Claims, Claims principal).

I tried to inherit from IdentityUser twice, once for the first type and once for the second. And then adding those types through the AddIdentityCore method, but it became after migration the properties were put together in the AspNetUser table, meaning Table per Hierarchy.

0 Answers0