container.Register(Component.For(typeof(IRepository<>)).ImplementedBy(typeof(Repository<>)));
On Sat, Nov 22, 2008 at 9:58 PM, Patrick De Boeck <[EMAIL PROTECTED]>wrote: > > Hi all, > > I am experimenting with the fluent interface for configuring my > dependencies. So far I always used xml but this becames to much of a > hassle and I lost my R# adavantages. > > In xml the following construct is possible, this means that you do not > have to register a Repository for every business class but let the > container handle this. > > <component id="NHibernateRepository" > service="Infrastructure.NHibernate.IRepository`1, > Infrastructure" > type="Infrastructure.NHibernate.NHibernateRepository`1, > Infrastructure"/> > > Is there any way how I can achieve this behavior by using the fluent > interface? > > > > > -- Tuna Toksöz http://www.tunatoksoz.com Typos included to enhance the readers attention! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
