Curious if anyone out there has ever connected NHibernate to Visual Foxpro 8.0? I'm looking to hook into a legacy data store, and would prefer to use NHibernate vs. having to hand-code all of the ADO.Net.
If anyone has an example of the configuration XML file for a FoxPro 8 connection that would be great!
Here is my solution:
and Config maps:
And figured out the solution:
First, I needed to pick up the Visual FoxPro drivers (these are 9.0 but allowed me to work in 8.0).
Next, I had to set up my NHibernate config as follows. In this project I'm directory based, so I have a directory called C:\Temp\VisualFox\ that contains all of my *.dbf files.
And now, all is well in the world!
I don't have a full XML example, but using the
OleDbDriver
along withGenericDialect
should get you started.