c# - Cannot find the right overloaded NHibernate Execute function -


i can't find overload function of nhibernate schemaexport.execute

http://ayende.com/blog/archive/2009/04/28/nhibernate-unit-testing.aspx

what 4 booleans do?

new schemaexport(configuration).execute(true, true, false, true, session.connection, console.out); 

in nh2.1 4th bool parameter schemaexport.execute() eliminated. indicated wanted ddl nicely formatted. if ask nh2.1+ script ddl console, formats nicely default. no need separate option. here signature nh2.0...

    /// <summary>     /// executes export of schema in given connection     /// </summary>     /// <param name="script"><see langword="true" /> if ddl should outputted in console.</param>     /// <param name="export"><see langword="true" /> if ddl should executed against database.</param>     /// <param name="justdrop"><see langword="true" /> if ddl drop database objects should executed.</param>     /// <param name="format"><see langword="true" /> if ddl should nicely formatted instead of 1 statement per line.</param>     /// <param name="connection">     /// connection use when executing commands when export <see langword="true" />.     /// must opened connection. method doesn't close connection.     /// </param>     /// <param name="exportoutput">the writer used output generated schema</param>     /// <remarks>     /// method allows both drop , create ddl script executed.     /// overload provided enable use of in memory databases.      /// not close given connection!     /// </remarks>     public void execute(bool script, bool export, bool justdrop, bool format,                         idbconnection connection, textwriter exportoutput)             -- remainder of method -- 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -