by Muhammad Bilal Ashraf
Feedback
|
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days):
27347/
35
|
|
|
References |
|
|
|
User Comments
Title:
ORM, fluent nhibernate, oracle
Name:
laura
Date:
2012-08-03 3:50:29 PM
Comment:
Excellent article, i wish i had found this ealier
|
Title:
Solution
Name:
Bilal
Date:
2011-07-21 6:45:45 AM
Comment:
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
Comment:
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
Comment:
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: }
|
|
|
|