-->
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: VistaDB driver
PostPosted: Fri May 05, 2006 6:03 pm 
Newbie

Joined: Fri May 05, 2006 11:02 am
Posts: 3
Does anyone know what is required to use VistaDB (http://www.vistadb.com) to use with NHibernate? I saw a post someone was working on the driver and I don't seem to find if that is implemented at all???

Could some one point me to a link or steps I need to get this one working?

Thanks in advance.


Top
 Profile  
 
 Post subject: Try adapting the SQLite driver..
PostPosted: Mon May 08, 2006 7:19 am 
Newbie

Joined: Thu May 04, 2006 5:51 am
Posts: 7
As far as I can make out, there are only two things you need to support a new database in NHibernate..

- A Dialect

Try using the SQLite dialect. This would seem to fit with VistaDB, which claims SQL-92 support but no RIGHT JOIN support ; just like SQLite.

- A Driver

Which can be as simple as a very small definition that inherits from the base NHibernate.Driver.ReflectionBasedDriver class. It's main responsibility appears to be creating connections and command objects.

Since VistaDB claims that it has a full ADO.NET API, including VistaDBConnection and VistaDBCommand classes, the ReflectionBasedDriver should work fine.

Grab the NHibernate.Driver.SQLiteDriver source, paste it into a class module in your data layer assembly, rename the class, and replace the three strings in the constructor with the appropriate values for VistaDB (assemblyname, connection class, and command class). Then point to this new class in your configuration (you don't have to compile the new driver into the NHibernate assemblies, as long as you tell the configuration it's fully qualified classname and the assembly it's located in (which can be one of your own).

Work out what the values of the four properties the driver exposes should be for VistaDB, and you should be going.

I had to do this because the SQLite driver supplied does not reference the new ADO.NET 2.0 driver.[/code]


Top
 Profile  
 
 Post subject: I will try
PostPosted: Mon May 08, 2006 10:11 am 
Newbie

Joined: Fri May 05, 2006 11:02 am
Posts: 3
I will try with your comments and see if I can get this going.
Thanks.


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.