Nhibernate 为什么这会继续重新创建我的数据库?
我使用的是fluent nhibernate,有这条线Nhibernate 为什么这会继续重新创建我的数据库?,nhibernate,fluent-nhibernate,Nhibernate,Fluent Nhibernate,我使用的是fluent nhibernate,有这条线 private static void BuidSchema(NHibernate.Cfg.Configuration config) { new SchemaExport(config).Execute(false,true,false); } 现在它继续重建我的数据库。我是否误解了参数 我认为将justDrop设置为false会阻止我的数据库被重新创建,如果它存在的话。如果将export设置为tru
private static void BuidSchema(NHibernate.Cfg.Configuration config)
{
new SchemaExport(config).Execute(false,true,false);
}
现在它继续重建我的数据库。我是否误解了参数
我认为将justDrop设置为false会阻止我的数据库被重新创建,如果它存在的话。如果将export设置为true,它会删除重新创建数据库的命令。Rudice那么jsutDrop做什么呢?有没有可能只有在数据库不存在时才创建数据库?
script
true if the ddl should be outputted in the Console.
export
true if the ddl should be executed against the Database.
justDrop
true if only the ddl to drop the Database objects should be executed.
format
true if the ddl should be nicely formatted instead of one statement per line.