-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Nhibernate for Visual FoxPro database
PostPosted: Wed Jul 22, 2009 7:41 am 
Newbie

Joined: Wed Jul 22, 2009 7:17 am
Posts: 2
Hello,

Can Nhibernate work with FoxPro 9.0 database? In supported databases, FoxPro was not mentioned. But there are some topics by the members saying that they are using Nhibernate for FoxPro database. Has any body has success with using it for FoxPro? Are there any drawbacks/issues we may need to address?

Regards
Kishore


Top
 Profile  
 
 Post subject: Re: Nhibernate for Visual FoxPro database
PostPosted: Thu Nov 26, 2009 5:46 am 
Newbie

Joined: Thu Nov 12, 2009 6:05 am
Posts: 1
Hi, did you find and answer to your question? if yes could you tell me? Thanks
Anna


Top
 Profile  
 
 Post subject: Re: Nhibernate for Visual FoxPro database
PostPosted: Thu Dec 03, 2009 2:13 pm 
Newbie

Joined: Thu Dec 03, 2009 2:10 pm
Posts: 13
I have been able to get it working with VFP9. Here is a copy of my hibernate.cfg.xml file which allows me to connect -

Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" >
  <session-factory>
    <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
    <property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property>
    <property name="connection.driver_class">NHibernate.Driver.OleDbDriver</property>
    <property name="connection.connection_string">Provider=VFPOLEDB.1;Data Source=C:\data_directory;Password="";Collating Sequence=MACHINE</property>

    <property name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>
    <property name="show_sql">true</property>
  </session-factory>
</hibernate-configuration>



Hope this helps.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.