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