1
ASP.NET IDに特定のユーザー名とパスワードを持つユーザーが存在するかどうかを確認します。私が試したし、それは私のコードです:エンティティタイプIdentityUserは、ASP.NETの現在のコンテキストのモデルの一部ではありません。ID:
UserManager<IdentityUser> userManager = new UserManager<IdentityUser>(new UserStore<IdentityUser>(new ApplicationDbContext()));
var user = await userManager.FindAsync(userName, password);
しかし、何かがうまくいかないと、それは誤りです:
The entity type IdentityUser is not part of the model for the current context.
あなたが私に解決策を教えてくれますか?デフォルトMVCプロジェクトを使用している場合
は、私が働いていたが、今私は別の問題を抱えています。 FindAsync関数が応答しません。 –
答えを更新します。 –