Dotnet, Efcore.
set; } public string UserName {get;set;} public string EMail {get;set;} // Navigation public UserProfileEntity Profile {get;set;} } public class UserProfileEntity // Navigation public UserEntity User { get;set; } [Key] public UserId Id { get; set; } // in this case its FK and PK at the same time