protected void Context() { var model = new TestModel(); var config = new Configuration(); config.Configure(); model.Configure(config); var factory = config.BuildSessionFactory(); var session = factory.OpenSession(); new SchemaExport(config).Execute(true, false, false, false, session.Connection, null); }