vgquotes/Tests/VideoGameQuotes.Api.Tests/NHibernate/SchemaExporter.cs
2011-02-09 00:05:32 +00:00

19 lines
499 B
C#

using NHibernate.Cfg;
using NHibernate.Tool.hbm2ddl;
using NUnit.Framework;
namespace VideoGameQuotes.Api.Tests.NHibernate {
[TestFixture]
public class SchemaExporter {
[Test]
public void Export_schema() {
var config = new Configuration();
config.Configure(GetType().Assembly, GetType().Namespace + ".hibernate.cfg.xml");
new SchemaExport(config)
//.SetOutputFile(@"c:\users\tmont\code\VideoGameQuotes\schema.sql")
.Execute(true, true, false);
}
}
}