0
I need to make a comparison, from two databases, I need to bring the emails that do not exist in the other bank. I tried to do it this way:
var email = _contextVO.Usuarios.Where(x => x.Ativo == true && !_userManager.Users.Where(a => a.Email == x.Email).Any()).ToListAsync();
But he returns this error to me:
Cannot use Multiple Dbcontext instances Within a single query Execution. Ensure the query uses a single context instance
I thought of separating, but I couldn’t compare! I can’t work this way with two context ? How can I get around this problem. 'Cause I’m gonna need to enter the Banco1 data for Banco2.