19 lines
499 B
C#
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);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|