aspnetboilerplate에서 작업 코드를 만들려고합니다. 다음과 같습니다 WindsorContainer
수준의 기능'System.ArgumentNullException'in WindsorContainer.Register(). 값은 null 일 수 없습니다. 매개 변수 이름 : 이름
public void Register(Type type, Type impl, DependencyLifeStyle lifeStyle = DependencyLifeStyle.Singleton)
에 대한 호출이 있습니다
:
iocManager.Register(
typeof(IRepository<,>).MakeGenericType(entityType, primaryKeyType),
typeof(EfRepositoryBase<,,>).MakeGenericType(dbContextType, entityType, primaryKeyType),
DependencyLifeStyle.Transient
);
resuting 유형은 다음과 같습니다
[System.RuntimeType] = {Name = "IRepository`2" FullName = "Abp.Domain.Repositories.IRepository`2"}
및
base = {Name = "EfRepositoryBase`3" FullName = null}
MakeGenericType()
구체 유형의 FullName
으로 인스턴스화 된 것이 null
임을 알 수 있습니다.
클래스 EfRepositoryBase3
는 다음과 같습니다
public class EfRepositoryBase<TDbContext, TEntity, TPrimaryKey> : IRepository<TEntity, TPrimaryKey>
where TEntity : class, IEntity<TPrimaryKey>
where TDbContext : DbContext
{
... CRUD methods...
}
왜 문제가 해결 될 수있는 그것의 FullName
이 null
어떻게합니까?