protected internal NHibernateInitializer(MappingInfo mappingInfo, Action <NHibernate.Cfg.Configuration> configAction) { mappingInfo.ShouldNotBeNull("mappingInfo"); _mappingInfo = mappingInfo; _ioc = new IoCInitializer(this); ConfigAction = configAction; }
protected internal NHibernateInitializer(MappingInfo mappingInfo, Action <NHibernate.Cfg.Configuration> configAction, params IConvention[] conventions) { mappingInfo.ShouldNotBeNull("mappingInfo"); _mappingInfo = mappingInfo; _ioc = new IoCInitializer(this); Conventions = conventions ?? new IConvention[] { new PascalNamingConvention() }; ConfigAction = configAction; }