I am trying to configure the NCommon NHRepository in my project using the Outline map. How can I stop him from choosing a greedy constructor?
public class NHRepository<TEntity> : RepositoryBase<TEntity> { public NHRepository () {} public NHRepository(ISession session) { _privateSession = session; } ... }
Configuration of my structure configuration
ForRequestedType(typeof (IRepository<>)) .TheDefaultIsConcreteType(typeof(NHRepository<>))
Greetings Jake
structuremap
superlogical
source share