And calculated the solution:
First, I needed to select Visual FoxPro drivers (this is 9.0, but I could work in 8.0).
Then I needed to configure NHibernate as follows. In this project, I am set to a directory, so I have a directory C: \ Temp \ VisualFox \, which contains all my * .dbf files.
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> <reflection-optimizer use="false" /> <session-factory> <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property> <property name="dialect">NHibernate.Dialect.GenericDialect</property> <property name="connection.driver_class">NHibernate.Driver.OleDbDriver</property> <property name="connection.connection_string">Provider=VFPOLEDB;Data Source=C:\Temp\VisualFox;Collating Sequence=general</property> <property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property> <property name="show_sql">false</property> </session-factory> </hibernate-configuration>
And now, all is well in the world!
source share