Generic types resolution

Mar 12, 2007 at 6:05 AM
Can't see if there's a way to do this in ObjectBuilder, but I have an IRepository<T> object and I want it to resolve to Repository<T>. ie. I don't want to add a mapping for IRepository<User> -> Repository<User>, IRepository<Product> -> Repository<Product> etc.

In the configuration i've tried service="IRepository`1", type="Repository`1" but ObjectBuilder can't parse that.

Any ideas?

Apr 7, 2007 at 7:36 AM
I posted an idea on this here: Problem with generic types....

Let me know if you get a chance to try it or not.