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.  [ 2 posts ] 
Author Message
 Post subject: how to access FoxPro
PostPosted: Wed Jan 30, 2008 9:40 am 
Beginner
Beginner

Joined: Tue Jan 22, 2008 11:33 am
Posts: 46
Hi,

is there a way to access FoxPro with NHibernate?

Thanks for your help

antoschka


Top
 Profile  
 
 Post subject: connects, but cannot retrieve results
PostPosted: Thu Feb 14, 2008 5:58 am 
Beginner
Beginner

Joined: Tue Jan 22, 2008 11:33 am
Posts: 46
Hi,

I managed to connect to a foxpro database. Here re teh entries of my connection file:
<nhibernate>
<!--FOXPRO Connection-->
<add
key="hibernate.connection.provider"
value="NHibernate.Connection.DriverConnectionProvider"
/>
<add
key="hibernate.dialect"
value="NHibernate.JetDriver.JetDialect, NHibernate.JetDriver"
/>
<add
key="hibernate.connection.driver_class"
value="NHibernate.JetDriver.JetDriver, NHibernate.JetDriver"
/>
<add
key="hibernate.connection.connection_string"
value="Provider=vfpoledb.1;Data Source=C:\myDB.dbc;Collating Sequence=machine;"
/>
</nhibernate>

However, when trying to retrieve data I get an exception:
- Message "No row with the given identifier exists: , of class: ....Type"
- DeclaringType {Name = "UnresolvableObjectException" FullName = "NHibernate.UnresolvableObjectException"} System.Type {System.RuntimeType}

In table "Type" the primary key is defined as single column of type varchar

What could be the problem?

Thanks for your help antoschka


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.