Last active
December 24, 2015 06:29
-
-
Save uhaciogullari/6757057 to your computer and use it in GitHub Desktop.
NUnit test for creating schema with NHibernate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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