Ambiguous reference error in Asp Net Core after installation of Google.Cloud.Firestore package

Asked

Viewed 15 times

-1

Hello,

After installation of the package Google.Cloud.Firestore versão 2.3.1, I’m having ambiguity error between the Microsoft.EntityFrameworkCore and System.Linq.AsyncEnumerable.ToListAsync and for this reason I can not make the query in the database using await _dbContextMySQL.JogoOnLine.ToListAsync();.

I’ve researched and found only this comment here, but it didn’t solve. Can help?

1 answer

0

After hours of searching for a solution, I managed to get around the conflict by putting using static System.Linq.Enumerable and using static System.Linq.Queryable in place of using System.Linq. I don’t think this is an ideal solution, but follow the hint.

using Microsoft.EntityFrameworkCore;
using static System.Linq.Enumerable;
using static System.Linq.Queryable;
using Google.Cloud.Firestore;

Browser other questions tagged

You are not signed in. Login or sign up in order to post.