2011-10-01 15 views
0

私は今、これは私のデータベースを再作成し続け流暢NHibernateはを使用してこれはなぜ私のデータベースを再作成し続けますか?

private static void BuidSchema(NHibernate.Cfg.Configuration config) 
    { 
     new SchemaExport(config).Execute(false,true,false); 
    } 

このラインを持っています。私はパラメータを誤解していますか?

documentation

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. 

私はそれが存在する場合はfalseにjustDropを設定すると再作成されてからの私のDBを停止するだろうと思いました。

答えて

1

エクスポートをtrueに設定すると、データベースが再作成されます。

+0

ryudice jsutDropとは何ですか?それが存在しない場合にのみあなたのdbを作成するようにすることは可能ですか? – chobo2

関連する問題