2
私はそうのようなデフォルトのasp.netのコアアイデンティティユーザを拡張していますEFからの読み出しアイデンティティユーザー情報に
public class ApplicationUser : IdentityUser
{
public string FirstName { get; set; }
public string LastName { get; set; }
public MyObject SomeObject { get; set; }
public List<Email> AssociatedEmails { get; set; }
}
すべてのユーザーデータがAspNetusers
と呼ばれるテーブルに格納されているようですが、そこ私のコードでそれを参照することはできませんので、ApplicationDbContextでこれについての定義はありません。
私はEntity Frameworkからさまざまなユーザーの詳細を読み取ることができ、ユーザーレコードをさまざまなエンティティに関連付ける必要があるため、EFを通じてユーザーエンティティにアクセスできる必要があります。
これを行う適切な方法は何ですか?