Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@uhaciogullari
Last active December 24, 2015 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uhaciogullari/6757057 to your computer and use it in GitHub Desktop.
Save uhaciogullari/6757057 to your computer and use it in GitHub Desktop.
NUnit test for creating schema with NHibernate
[TestFixture]
[Category("DatabaseSchema")]
[Explicit]
//nunit-console "TestAssembly.dll" /include:DatabaseSchema /framework=4.0.30319
public class SchemaCreator
{
[Test]
public void CreateSchemaScript()
{
ISchemaManager schemaManager = new SchemaManager(new ConfigurationBuilder().BuildConfiguration());
schemaManager.CreateSchemaScript("D:\\schema.sql");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment