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();
....
|