オブジェクトのリストを含むインターフェイスクラスを実装しようとしています。実装クラスがリストのタイプを定義するように、リストを汎用的にするにはどうすればいいですか?インターフェイス内の一般的なリスト
public interface IEntity
{
Guid EntityID { get; set; }
Guid ParentEntityID{ get; set; }
Guid RoleId { get; set; }
void SetFromEntity();
void Save();
bool Validate();
IQueryable<T> GetAll(); // That is what I would like to do
List<Guid> Search(string searchQuery);
}
public class Dealer : IEntity
{
public IQueryable<Dealer> GetAll() { }
}