public override FluentConfiguration CreateConfiguration()
        {
            FluentConfiguration.InitializeFromConfigMsSql(ConfigSectionName);
            FluentConfiguration.AddMappingsFromAssemblyOf <UserMap>();

            return(FluentConfiguration);
        }
        public override FluentConfiguration CreateConfiguration()
        {
            FluentConfiguration.InitializeFromConfigMsSql(Configuration, ConfigSectionName);
            FluentConfiguration.AddMappingsFromAssemblyOf <ExampleSessionFactoryBuilder>(
                PrimaryKey.Name.Is(x => "ID"),
                Table.Is(x => x.EntityType.Name + "s"),
                ForeignKey.EndsWith("ID"),
                ForeignKeyConstraintNameConvention.WithConstraintNameConvention(),
                DefaultCascade.None());

            return(FluentConfiguration);
        }