How to get navigation properties from userManager? RRS feed

  • Question

  • User1655654435 posted

    In my Asp.net Core 2.0 app I have an ApplicationUser class where I store names and info. But I also have set a navigation property which is a class called "Company" there.

    I use this in my controller to get the current user:

    var person = await _userManager.GetUserAsync(User);

    The problem is that the navigation property is not included in this(the other properties are however. person.Company is null). Is there a way to include it using userManager or do I have to call the ApplicationUser table again after this?

    Friday, September 1, 2017 8:54 AM

All replies