2009-07-21 8 views
3

j'ai un problème avec ma première application avec NHibernate comme ORMne peut pas trouver surchargé méthode Execute pour SchemaExport

dans cet exemple: http://nhibernate.info/doc/tutorials/first-nh-app/your-first-nhibernate-based-application.html

ils utilisent ce test simple:

public void Can_generate_schema() 
     { 
      var cfg = new Configuration(); 
      cfg.Configure(); 
      cfg.AddAssembly(typeof (Product).Assembly); 

      new SchemaExport(cfg).Execute(false, true, false, false); 
     } 

mais je ne peux pas trouver la méthode Execute pour 4 paramètres 3 seulement:

new SchemaExport(cfg).Execute(false, true, false); 

wha t-il me manque ici?

Répondre

4

Cette surcharge a été supprimée dans la version 2.1.

+0

i essayé le trouver dans les notes de version: http://nhjira.koah.net/secure/ReleaseNote.jspa?projectId=10000&styleName=Html&version=10275 , mais je ne peux pas, ce qu'ils changent exactement? – Sasha

+2

Découvrez http://nhibernate.svn.sourceforge.net/viewvc/nhibernate/trunk/nhibernate/releasenotes.txt?view=markup&pathrev=4185 et http://nhibernate.svn.sourceforge.net/viewvc/nhibernate/trunk /nhibernate/src/NHibernate/Tool/hbm2ddl/SchemaExport.cs?r1=4185&r2=4184&pathrev=4185 - le quatrième paramètre booléen (format) a été supprimé. –

Questions connexes