GetConfiguration() public method

Builds the Configuration object from the specifed configuration
public GetConfiguration ( IConfiguration config ) : NHibernate.Cfg.Configuration
config IConfiguration
return NHibernate.Cfg.Configuration
        public Configuration GetConfiguration(IConfiguration facilityConfiguration)
        {
            var defaultConfigurationBuilder = new DefaultConfigurationBuilder();
            var configuration = defaultConfigurationBuilder.GetConfiguration(facilityConfiguration);
            configuration.AddAutoMappings(CreateAutomappings());

            return configuration;
        }
        public Configuration GetConfiguration(IConfiguration facilityConfiguration)
        {
            var defaultConfigurationBuilder = new DefaultConfigurationBuilder();

            var configuration = defaultConfigurationBuilder.GetConfiguration(facilityConfiguration);

            configuration.AddMappingsFromAssembly(typeof(Usuario).Assembly);

            return configuration;
        }