Click here to Skip to main content
15,884,693 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using DeVart DotConnect for Oracle Entity Developer to create my model. Everything is working properly, but I need to use some user defined functions from Oracle.

Is it possible to do this and if it is, what are the steps to make it work?
Posted

1 solution

As far as I know you cannot use functions directly with EF. With ODP.Net you can map stored procedures to EF via function import (see for example: http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/dotnet/EntityFrameworkOBE/EntityFrameworkOBE.htm[^]) and you can use functions of course in custom SQL statements for example if you embed a scalar function call inside a statement.

One workaround could be that you create a proper SQL statement with functions you want to use and create a view based on that statement.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900