Mapping SP return data
Posted: Thu 26 Aug 2010 15:39
Hello,
We have a stored procedure named 'dynamicpicklist' in Oracle database with simple latest statement in it's code:
execute immediate 'select * from v2_dynamic_picklist';
In Oracle EF model we have v2_dynamic_picklist working entity.
We know it's working one since with LINQ statements it's possible to retrieve data from that table.
We made function import of 'dynamicpicklist' stored procedure and mapped it's result set
to v2_dynamic_picklist entites collection. Despite the fact that the stored procedure is properly
executed via EF generated code, we recieve the following exception:
The data reader is incompatible with the specified 'OnGuard.DCMS.Model.DisplayTemplate.v2_dynamic_picklist'.
A member of the type, 'id', does not have a corresponding column in the data reader with the same name."} System.Data.EntityCommandExecutionException
Is it possible to configure Oracle EF model or at least re-write the Oracle stored procedure differently
so this exception does not occure anymore?
We have a stored procedure named 'dynamicpicklist' in Oracle database with simple latest statement in it's code:
execute immediate 'select * from v2_dynamic_picklist';
In Oracle EF model we have v2_dynamic_picklist working entity.
We know it's working one since with LINQ statements it's possible to retrieve data from that table.
We made function import of 'dynamicpicklist' stored procedure and mapped it's result set
to v2_dynamic_picklist entites collection. Despite the fact that the stored procedure is properly
executed via EF generated code, we recieve the following exception:
The data reader is incompatible with the specified 'OnGuard.DCMS.Model.DisplayTemplate.v2_dynamic_picklist'.
A member of the type, 'id', does not have a corresponding column in the data reader with the same name."} System.Data.EntityCommandExecutionException
Is it possible to configure Oracle EF model or at least re-write the Oracle stored procedure differently
so this exception does not occure anymore?