Last post Dec 08, 2014 07:02 AM by AxelD
Dec 04, 2014 09:25 AM|AxelD|LINK
IdentityUserRole is missing navigation properties for Role and User.
Where is the right place to get these properties added to IdentityUserRole's wishlist?
Dec 04, 2014 10:25 PM|Michelle Ge - MSFT|LINK
According to your description, navigation properties for Role and User have been missed. I'm not sure your version, but so far as I know, this is a known change in ASP.NET Identity 2.0 since we now support generic primary keys. For all roles and user operations
use the UserManager class instead of working with the user and role object directly.
For more information, please refer to the link below:
For more information about ASP.net Identity 2.0, please refer to the link below:
Hope it's useful for you.
Dec 08, 2014 07:02 AM|AxelD|LINK
Thank you Michelle.
However, I'm sharing pgaule's opinion:
One of the main reasons for using Entity Framework is its navigation property service. If you omit navigation properties for some other pattern, Entity Framework on ASP.NET Identity renders no benefit. There'd be no reason from a user's perspective for using
Entity Framework for ASP.NET.
Making use of generic keys is no excuse for omiting navigation properties. The ASP.NET Identity team can easily create a relationship mapping corresponding to any key there is in ASP.NET Identity. Doing so is but using one of the key features of Entity Framework.
So I still would very much like to suggest to return to provide navigation properties to ASP.NET.
Is this possible?