Ambigiuous method call between extension methods

Viewed 2644

I have been download DynamicLinq library via nuget package. I used it like below

db.ReservationSet.Where("blbalbabla",1,2)

But i get below exception.

Error 38 The call is ambiguous between the following methods or properties: 'System.Linq.Dynamic.DynamicQueryable.Where(System.Linq.IQueryable, string, params object[])' and 'System.Linq.Dynamic.DynamicQueryable.Where(System.Linq.IQueryable, string, params object[])' F:\Projects\IEKeysNew\IEKEYS\Controllers\ReportController.cs 145 22 IEKEYS

Here is sign of both methods.

public static IQueryable<T> Where<T>(this IQueryable<T> source, string predicate, params object[] values);
public static IQueryable Where(this IQueryable source, string predicate, params object[] values);

I could not find something to get rid of this compile time exception.

4 Answers
Related