3
이 내가이와 XML 설정 파일에서 번역을 시도했지만구성 성 Windosor 및 일반은
<component id="NHRepository"
service="NCommon.Data.IRepository'1, NCommon"
type="NCommon.Data.NHibernate.NHRepository'1, NCommon.NHibernate"
lifestyle="transient">
</component>
어떻게 작동하지 않았다
WindsorContainer container = new WindsorContainer();
container.Register(Component.For(typeof(IRepository<>))
.ImplementedBy(typeof(NHRepository<>))
.LifeStyle.Transient)
Global.asax에 내 코드입니다 이 코드를 Windsor.config로 설정 파일에서 변환 할 수 있습니까?
탱크 미르코
참조 [이 다른 질문 (http://stackoverflow.com/questions/934352/castle-windsor-fluent- 의존성을 가진 단일 항목을 갖는 API 정의 배열) – Ahmad
관련 없음 .... –