to create the domain.
and I'm using ASP Identity Package for Users and Authentication,
I am creating a table to store profiles.
in the profile, I'm storing the linked user id,
but, I don't want to store the profile id in the account,
So can I get the profile from user directly without some query gymnastic?
public class AppUser : IdentityUser<Id>
{
// want to keep this, but not allow it to generate ProfileId column.
// so it generates join on where profile AccountId equals user Id
public ContactProfile? Profile { get; set; }
}
Yes, but if I do this and define Profile property, it will generate ProfileId column too.
Обсуждают сегодня