You just need to make IEntity itself. Then use the type parameter in the definition of GetAll ().
Here you can change your code:
public interface IEntity<TListItemType>
{
IQueryable<TListItemType> GetAll();
}
public class Dealer : IEntity<Dealer>
{
public IQueryable<Dealer> GetAll() {
}
source
share