我已经构建了一个通用存储库接口,它挂起了许多实体特定的存储库接口。镜像这个结构是许多具体的存储库类。
方法'GetAll‘不能从接口'...IRepository<TEntity,TIdentity’实现方法。返回类型应该是‘System.Collection tions.Generic.List’。
IRepository
public interface IRepository<TEntity, in TIdentity> wher
通过广泛的谷歌搜索,我似乎不是第一个遇到这个问题的人,但我一直找不到任何能够令人满意地解决这个问题的人--我正在与一个遗留数据库集成,我只是尝试与单个表集成(目前),但我对这个模型的第一个查询需要大约12秒左右的时间执行。然而,正如预期的那样,第二个电话几乎是即时的。public class PortalDatabase : DbContext public DbSet<User> Users { get; set; }
public PortalDatabase():base("portalDatabase