-->
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.  [ 1 post ] 
Author Message
 Post subject: Nhibernate support arbitrary OLEDB provider?
PostPosted: Fri Nov 10, 2006 12:06 pm 
Newbie

Joined: Sat Sep 30, 2006 3:32 am
Posts: 3
Does NHibernate support arbitrary/3rdParty OLEDB providers?

Some of my business objects are coming from an accounting system called Investran, the much preferred access method is their proprietary OLEDB provider.

I can get the data using regular ADO.NET (System.Data.OleDb.*), but I prefer to stay with NHibernate instead. Sample code below.

If not, is there any other way to get this data into NHIB across OLEDB?

Thanks,
Chris

Sample ADO.NET Code
OleDbConnection conn = new OleDbConnection(Provider=ftiRSOLEDB.RSOLEDBProvider;Integrated Security="false";Location="";Mode=Read;Data Source=svr\instance;Initial Catalog=dbname;User Id=uuuu;Password=pppp);
OleDbCommand cmd = new OleDbCommand("ReportFolder"."ReportName" "Parm1=xxxx" "Parm2=yyyy" FLAGS[/Silent;/FetchBool]conn);
OleDbDataReader reader = cmd.ExecuteReader();
....


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

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.