Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

ef core identity get user with relationships

First add relationship to ApplicationUser

public class ApplicationUser : IdentityUser
{
  public string Name { get; set; }
  public string Surname { get; set; }

  public IList<Address> Address { get; set; }
}

and then you call call it easly using UserManager Class

var user = await userManager.Users.Include(x => x.Address).SingleOrDefaultAsync(x => x.Id == Id);
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# for loop Statement 
Csharp :: c# check file similarities 
Csharp :: c# switch two values 
Csharp :: Stop Unity Wait Time with Button 
Csharp :: dotween do rotate on one axis 
Csharp :: how to backup terrain in unity 
Csharp :: blazor OnInitializedAsync Unhandled exception rendering component: Cannot wait on monitors on this runtime. 
Csharp :: c# fold list 
Csharp :: wpf create rectangle c# 
Csharp :: distinct and not null c# 
Csharp :: sort number in dynamo 
Csharp :: how to pass id to modal in asp.net mvc 
Csharp :: C# program to implement the Quadratic Formula 
Csharp :: c# register write value 
Csharp :: entity framework dynamic search 
Csharp :: c# textbox tab column 
Csharp :: c# execute run control panel 
Csharp :: c# linq get one object 
Csharp :: secret 
Csharp :: cannot access file being used by another process create file 
Csharp :: C# today, yesterday, last week, last month 
Csharp :: c# return default "" if null 
Csharp :: c# listview 
Csharp :: get sites ip in C# 
Csharp :: insert variables into a string C# 
Csharp :: unity 2d platformer movement script rigidbody 
Csharp :: hydrogen fuels 
Csharp :: select list that does not exis in another C# list 
Html :: html yen symbol 
Html :: jquery ui cdn 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =