Dot Net implecit Casting Problem for Oracle Database

When you try to implecit convert integer from a ado.net' datarow, if database is oracle then it though Invalid casting error. You must use explicit casting with the help of Convert class( Convert.ToInt32()) to convert that.
But it is interesting that if your database is SQL Server then it works fine.

No comments: