protected internal NHibernateInitializer(MappingInfo mappingInfo, Action <NHibernate.Cfg.Configuration> configAction)
            {
                mappingInfo.ShouldNotBeNull("mappingInfo");

                _mappingInfo = mappingInfo;
                _ioc         = new IoCInitializer(this);

                ConfigAction = configAction;
            }
示例#2
0
            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;
            }