0
我使用流利的NHibernate和這行爲什麼這會繼續重新創建我的數據庫?
private static void BuidSchema(NHibernate.Cfg.Configuration config)
{
new SchemaExport(config).Execute(false,true,false);
}
現在這個不斷重建我的數據庫。我誤解了參數嗎?
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.
我以爲justDrop設置爲false,將從如果存在被重新停止我的分貝。
ryudice然後jsutDrop做什麼?是否有可能創建你的數據庫,如果它不存在? – chobo2