我需要来自 2 个不同数据库的数据。我试过以下
var User = (from U in _db.TblUsers
where U.IsAdmin == false
select U).ToList();
var AspNewsUser = (from A in _dbAspNet.aspnet_Users
select A).ToList();
var result = (from U in User
join A in AspNewsUser
on U.UserID equals A.UserId
select U);
但我收到以下错误消息
join 子句中的表达式之一的类型不正确。对“加入”的调用中的类型推断失败。