我知道我们通过使用匿名类在连接中实现了多个条件,但是任何人都可以确认以下方法不起作用吗?似乎没有,我很难验证。
...
join up in db.UserProfiles on
new { UserId = uf.UserId, IsDeleted = false, IsApproved = true } equals
new { UserId = up.UserId, IsDeleted = up.IsDeleted ?? false, IsApproved = up.aspnet_User.aspnet_Membership.IsApproved }