Gahn
Resident Freddy
- Joined
- Jan 16, 2004
- Messages
- 5,056
Any1 can link me to some working vb.NET samples of NHibernate?
I followed the Quick Start Guide from hibernate.org, provided am using, for test purposes, a Sql 2005 Express, hence am not sure it is even supported, it returns me an error pretending i didn't declared the connection.driver_class.
The web.config configSections is the following:
<configSections>
<section
name="nhibernate"
type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"
/>
</configSections>
<connectionStrings />
<nhibernate xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property>
<property name="connection.connection_string">
Data Source=_MyServer;Initial Catalog=_MyDb;Integrated Security=True;Persist Security
Info=True;
</property>
</session-factory>
</nhibernate>
Can't see anything wrong?
Any light?
I followed the Quick Start Guide from hibernate.org, provided am using, for test purposes, a Sql 2005 Express, hence am not sure it is even supported, it returns me an error pretending i didn't declared the connection.driver_class.
The web.config configSections is the following:
<configSections>
<section
name="nhibernate"
type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"
/>
</configSections>
<connectionStrings />
<nhibernate xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="dialect">NHibernate.Dialect.MsSql2005Dialect</property>
<property name="connection.connection_string">
Data Source=_MyServer;Initial Catalog=_MyDb;Integrated Security=True;Persist Security
Info=True;
</property>
</session-factory>
</nhibernate>
Can't see anything wrong?
Any light?