Salut à tou(te)s,
j'ai une petite config NHibernate 3.0 qui fonctionne plus ou moins. En effet ça compile et j'arrive à créer une table ainsi qu'à y insérer des données.
J'aurais voulu voir dans mon "Test Output" de VS2005 le sql généré par NHibernate.
Dans mon hibernate.cfg.xml j'ai :
Donc à priori cela devrait être OK. Quelqu'un aurait une suggestion pour enfin voir ce code SQL généré par NHibernate ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 <?xml version="1.0" encoding="utf-8"?> <!-- This template was written to work with NHibernate.Test. Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it for your own use before compile tests in VisualStudio. --> <!-- This is the ByteFX.Data.dll provider for MySql --> <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> <session-factory> <property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property> <property name="connection.connection_string"> Database=spring;Data Source=localhost;User Id=spring;Password=spring </property> <property name="dialect">NHibernate.Dialect.MySQLDialect</property> <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> <property name="show_sql">True</property> <property name="format_sql">True</property> </session-factory> </hibernate-configuration>
Merci
Partager