Expression generated based on interface
问题 I'm geting the exception Unable to cast the type 'MySomeTypeThatImplementsISomeInterfaceAndIsPassedAs[T]ToTheClass' to type 'ISomeInterface'. LINQ to Entities only supports casting Entity Data Model primitive types. my repository looks like public interface IRepository<T> { IQueryable<T> Get(System.Linq.Expressions.Expression<System.Func<T, bool>> Query); } Also, I have the service class public abstract class FinanceServiceBase<TAccount, TParcel, TPayment> where TAccount : IAccount where