Click here to Skip to main content
11,411,263 members (65,052 online)
Rate this: bad
good
Please Sign up or sign in to vote.
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 2-Dec-11 6:56am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 149
1 Sascha Lefévre 110
2 OriginalGriff 103
3 Dave Kreskowiak 80
4 Maciej Los 78
0 Sergey Alexandrovich Kryukov 8,920
1 OriginalGriff 6,983
2 Maciej Los 3,430
3 Abhinav S 3,248
4 Peter Leow 3,059


Advertise | Privacy | Mobile
Web01 | 2.8.150414.5 | Last Updated 2 Dec 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100