NHibernate - fast way to clear out database
Posted
by csetzkorn
on Stack Overflow
See other posts from Stack Overflow
or by csetzkorn
Published on 2010-03-17T11:14:07Z
Indexed on
2010/03/17
11:21 UTC
Read the original article
Hit count: 236
nhibernate
|integration-testing
Hi,
I intend to perform some automated integration tests. This requires the db to be put back into a 'clean state'. Is this the fastest/best way to do this:
var cfg = new Configuration();
cfg.Configure();
cfg.AddAssembly("Bla");
new SchemaExport(cfg).Execute(false, true, false);
Thanks.
Christian
© Stack Overflow or respective owner