 <p>Try this </p> <pre><code> return Fluently.Configure().Database(MsSqlConfiguration.MsSql2008 .ConnectionString(@"Data Source=CHRIS-PC\\SQLEXPRESS;Initial Catalog=TestDB;User ID=test")) .Mappings(m =&gt; m.AutoMappings.Add(model)) .ExposeConfiguration(BuildSchema) .BuildSessionFactory(); </code></pre> <p>or use this let <strong>mymodel</strong> be a sample <strong>model</strong></p> <pre><code> Fluently.Configure() .Database(MsSqlConfiguration.MsSql2008 .ConnectionString(ConfigurationManager.ConnectionStrings["CHRIS-PC\\SQLEXPRESS"].ConnectionString)) .Mappings(m =&gt; m.FluentMappings.AddFromAssemblyOf&lt;mymodel&gt;().Add&lt;UsersMap&gt;()) .ExposeConfiguration(cfg =&gt; { new SchemaExport(cfg).Execute(false, true, false); // new SchemaUpdate(cfg).Execute(true, true); }).BuildSessionFactory(); </code></pre>