vgquotes/Tests/VideoGameQuotes.Api.Tests/NHibernate/SchemaExporter.cs

19 lines
499 B
C#
Raw Normal View History

2011-02-09 00:05:32 +00:00
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);
}
}
}