I want to use hibernate with attached database in C# project. But, with my hibernate.xml, it throw an Persistence Exception :
Code:
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.0" >
<session-factory name="localfactory">
<!-- properties -->
<property name="hibernate.connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="hibernate.dialect">NHibernate.Dialect.MsSql7Dialect</property>
<property name="hibernate.connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="hibernate.connection.connection_string">Data Source=.\\SQLEXPRESS;Database = Sample;Integrated Security=True;User Instance=True</property>
<property name="show_sql">false</property>
<property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property>
<!-- mapping files -->
<mapping assembly="QT.Demo" />
</session-factory>
</hibernate-configuration>
Can you help me ?