111,125
社区成员
发帖
与我相关
我的任务
分享
public interface IRepository<TEntity> : IRepository where TEntity : class, IEntity
public class EfRepository<TDbContext, TEntity> : IRepository<TEntity>
where TDbContext : IEfDbContext
where TEntity : class, IEntity
builder.RegisterGeneric(typeof(EfRepository<,>)).As(typeof(IRepository<>));