Page 1 of 1
Calling package with EF4
Posted: Mon 21 Nov 2011 05:11
by satishbodke
Is there any way where I could configure Oracle Package in EDMX (EF4), the way we configure stored proc being functions part of ObjectContext?
I dont see list of Packages in the Wizard while adding/ configuring entities with EDMX design view.
Posted: Tue 22 Nov 2011 10:08
by Shalex
You can add stored procedures from your package to the model in the same way as you add stored procedures which are outside the packages: they are available in a common stored procedures node in Entity Data Model Wizard.
We recommend you using Devart Entity Developer which has a lot of advantages comparing to EDM Wizard/Designer. E.g.: Entity Developer has a separate node for the packages content in Database Explorer.
Take into account the following limitation of Entity Framework itself - it works only with primitive types.
You can use user defined types, arrays, etc only with plain ADO.NET.
Posted: Thu 24 Nov 2011 05:01
by satishbodke
Yea, that works for me, I used Entity Developer to generate method for given Package-procedure and that works for me!!
Thanks