如何从IdentityDbContext和ApplicationDbContext联接表

时间:2019-02-13 03:48:18

标签: c# linq asp.net-identity

如何将AspNetUsers加入到我的表中,从AspNetUsers表中确认电子邮件

从确认电子邮件的表AspNetUsers中选择用户

var context = new IdentityDbContext();
var users = context.Users.Where(d => d.EmailConfirmed == true).Select(d => d.Id).ToList();

我的桌子

ApplicationDbContext db = new ApplicationDbContext();
UserAccountListViewModel model = new UserAccountListViewModel();
model.UserAccounts = db.UserAccounts.ToList();

1 个答案:

答案 0 :(得分:1)

您可以执行以下操作:

./include/xdg-shell-protocol.h