EF 4.0 with oracle - visual-studio-2010

I want in VisaulStudio 2010 Use EF 4.0 with oracle.
I install visual studio and oracle 9g.
when add item => ADO.NET entity data model and new connection =>Datasource : dont any oracle server.
need I installl ODAC (oracle client)?
whats need other things?
tanx a lot

Related

Oracle clr host

I'm so new to oracle
and I have been ordered to execute .net clr in oracle
but I'm confused now with these concepts
oracle data access components
oracle data .net extensions
please any help to put me on the right way
how I'm going to execute clr written in .net in oracle environment
I'm using oracle 12c and visual studio 2013
i have installed this oracle data access components
in this link
http://www.oracle.com/technetwork/topics/dotnet/utilsoft-086879.html
for oracle 12 release1
and then
download oracle developer tools for visual studio
http://www.oracle.com/technetwork/topics/dotnet/downloads/odacmsidownloadvs2013-2756823.html
and i'm getting errors when making new oracle project
is installation order wrong?
thanks for your replies
,but
i have discovered that each release of oracle has specific corresponding ODAC (oracle Data Access Components) ,and if you install un correct one you will get a lot of problems when deploying .net stored procedure (clr)
for me with oracle 12c release 1
the suitable odac were Release 4 (12.1.0.2.4) For windows x 64 found in this link
http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
when i installed these components i was able to have visual c# oracle project and then i followed this link tutorial
https://docs.oracle.com/cd/E63277_01/win.121/e63386/demo.htm#CLRNT154
and every thing in clr was ok

Does ODP.NET support EF Model-First with DbContext?

We're trying to use an Entity Framework Model-First approach with Oracle 11g and ODP.NET 11.2.0.3.20. We'd like to use EF 4.1 or EF 5.0 with DbContext.
Short version:
Has anyone managed to do that?
Long version:
On VS2010 and Entity Framework 4.0, everything works fine. I'm able to Generate Database from Model.
When I try it with EF 4.1 or EF 5.0, I always end up with an Object reference not set to an instance of an Object error message in Visual Studio:
I tried it the following ways:
Created a new EF 5.0 model in VS2012, set code generation workflow and templates to the Oracle stuff (Generate Oracle via T4 (TPT).xaml and SSDLToOracle.tt). Then I clicked on Generate Database from Model and chose a working Oracle connection, but Visual Studio just shows that error.
Created an EF 4.1 model in VS2012, same error.
Created an EF 4.1 model in VS2010, same error.
Tried a Database-First approach in EF 5.0 and EF 4.1, same error.
It only works if I'm using VS2010 and EF 4.0.
However, Oracle claims that it should work, see http://www.oracle.com/technetwork/topics/dotnet/downloads/install112030-1440546.html :
ODAC supports DbContext APIs.
Has anyone managed to use EF 4.1 or 5.0 with Oracle ODP.NET?
EDIT: Turns out it works fine on a 32-bit virtual machine. The problem is only there on my 64-bit Windows 7 machine.
Just delete corresponding connectionstring from project config file. Then choose new connection (to Oracle database) and click to generate DDL.

How to use Telerik ORM Reverse Mapping woth SQL Compact 4.0?

I was using Telerik ORM in Reverse Mapping Mode using SQL Server Compact 3.5. I upgraded the database to SQL Compact 4.0 and the reverse mapping started giving errors.
So i tried to recreate Reverse Mapping Model using Telerik ORM wizard and its says "Invalid database type".
I have the latest version of Telerik ORM
I have Visual Studio 2010 SP1 installed
I have Visual Studio Tools for SQL Compact 4.0 SP1 Installed.
I have all the necessary components installed for creating and managing SQL Compact 4.0
Telerik ORM created in a standard way works fine with SQL Comapct 4.0 but when i try to create model from SQL Compact 4.0 database using Reverse Mapping Wizard, it gives errors.
Has anyone experienced this issue?
Can anyone confirm that Reverse Mapping is supported with SQL Compact 4.0 or not?
An expert's response is highly appreciated.
Thanks
Steve
It looks like you are trying to create your data layer using the Classic API approach.
You could use the new approach for generating a domain model in your application, where the problem does not arise and SQL CE 4.0 can be used.

How do I get Entity Data Model to work with SQL Server CE 4.0?

I am trying to use Entity Framework with SQL Server CE 4.0. I installed VS10 SP1 with SQL Server CE etc. but when I tried to create an Entity Datamodel (.edmx), only SQL Server Compact 3.5 is shown as a provider, 4.0 is not on the list.
What should I do to get this to work? Thanks for any help!
This is by design, you can only do that in Web projects. But with SQL Server Cpmpact Toolbox, you can do it in any project type: http://sqlcetoolbox.codeplex.com

Entity Framework 4 with Oracle

I installed the ODP 11 lateset version, which suposed to wupport EF4.
But when i'm trying to add entity data model in the VS2010, I don't have the option to select Oracle Database.
Is there anything else i need to do?
Also, I have running on my pc Oracle Express 10g - Is the 11 ODP will work with this DB?
Maybe I missed something, but EF4 is still not supported in the latest ODP.NET

Resources