Orcacle call function error
Posted: Fri 27 Oct 2017 04:34
Hi
I want to call an oracle function from entity developer.
I wrote this command in "command text" property:
but in running time I got this error:
in model designer code:
how to solve this?
I want to call an oracle function from entity developer.
I wrote this command in "command text" property:
Code: Select all
SELECT FNC_SUM(1,2)
FROM DUAL
Code: Select all
System.InvalidCastException: 'Invalid cast from 'System.Decimal' to 'System.Data.Metadata.Edm.PrimitiveType'.'
Code: Select all
result = (global::System.Nullable<int>)command.ExecuteScalar();