Easily Setup Fluent Nhibernate With Oracle
page 3 of 3
by Muhammad Bilal Ashraf
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 32021/ 59
Article Contents:


View Entire Article

User Comments

Title: ORM, fluent nhibernate, oracle   
Name: laura
Date: 2012-08-03 3:50:29 PM
Excellent article, i wish i had found this ealier
Title: Solution   
Name: Bilal
Date: 2011-07-21 6:45:45 AM
Well there are two Data Provier implementations for connecting to Oracle thru .Net Code.
1. Microsoft
2. Oracle
I have used Oracle Implementation and referenced Oracle Data Access for .NET http://www.oracle.com/technetwork/database/windows/downloads/utilsoft-087491.html/

The Error is coming because you are referencing Microsoft DLL 'System.Data...'. You should use Oracle Provider DLL instead 'Oracle.DataAccess.Client' .
Title: Mr   
Name: Sudhir
Date: 2011-07-21 4:58:21 AM
Same error coming as Mr Jason Lee is saying. Please resolve and update the code
Title: System.InvalidCastException:   
Name: Jason Lee
Date: 2011-03-22 9:31:51 AM
Would you happen to know what causes this error. Most of the searching turns up responses for NH instead of FNH. The code seems to error on BuildSessionFactory()

Unable to cast object of type 'Oracle.DataAccess.Client.OracleConnection' to type 'System.Data.Common.DbConnection'.

Line 31: throw;
Line 32: }
Line 33: return c.BuildSessionFactory();
Line 34: }
Line 35: }

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2021 ASPAlliance.com  |  Page Processed at 2021-12-02 8:23:19 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search