Reputation: 179
I'm trying to setup a project for Entityframwork 6 and WCF Data Services 5.6. I went through this page
I installed NuGet package By:
Install-Package Microsoft.OData.EntityFrameworkProvider -Pre
After That I tried to ADO.Net Entity Data Model using Wizard. It doesn't allow me to Go futher. Error is like this
Your Project references the latest version of E F; However and EF database provider comapatible with this version could not be found for your data connection. Exit this wizard, install ta compatible provider, and rebuild your project before performing this action. and a link : http://msdn.microsoft.com/en-us/data/jj730568
My database is Oracle 11g and I'm using DevArt whose version is Oracle pro 8.0.146.0
I thought it is some issue with DotConnect I checked with vendor they gave me this link
I followed this too. But no success.
When I try adding DevArt Data Model *edml it gives me Ef 6 too. so when Create this edml and try a WCF Data Service give me The exception message is:
The property 'EntityState' on type 'Models.USER' is not a valid property. Make sure that the type of the property is a public type and a supported primitive type or a entity type with a valid key or a complex type.'. See server logs for more details. The exception stack trace is: at System.Data.Services.Providers.ReflectionServiceProvider.BuildTypeProperties
How can I set these up together?
Upvotes: 1
Views: 4599
Reputation: 179
Entityframework 6 , WCF Data Service 5.6 , DevArt oracle Connector
Now Let me Ans for my questions itself.
So I followed Below mentioned Links like Final words http://blogs.msdn.com/b/odatateam/archive/2013/10/02/using-wcf-data-services-5-6-0-with-entity-framework-6.aspx?Redirected=true
Register Entity Provider http://blog.devart.com/entity-framework-6-support-for-oracle-mysql-postgresql-sqlite-and-salesforce.html
believe me complex dependecy of dll is the hurdle to cross. For more you please read below threads. (Oopps.. I've not Reputation here so I can't post more links. Sorry)
Upvotes: 3
Reputation: 122032
... "Your project references the latest version of Entity Framework; however, an Entity Framework database provider compatible with this version could not be found for your data connection. Exit this wizard, install a compatible driver, and rebuild your project before performing this action"...
When working with EDM Designer you should add the registration of EF-provider to *.config before adding a new ADO.NET Entity Data Model to the project. The sample for dotConnect for Oracle is available here: http://blog.devart.com/entity-framework-6-support-for-oracle-mysql-postgresql-sqlite-and-salesforce.html
Entity Developer adds this registration of EF-provider to *.config automatically. We recommend you to use Entity Developer (Devart Entity Model, *.edml) instead of EDM Designer (ADO.NET Entity Data Model, *.edmx) because it is adjusted for working with Oracle and has an advanced functionality: http://www.devart.com/entitydeveloper/ed-vs-edm.html.
...The exception message is 'The property 'EntityState' on type 'Models.USER' is not a valid property. Make sure that the type of the property is a public type and a supported primitive type or a entity type with a valid key or a complex type.'...
Please send us (support at devart*com) a small test project, with which the error could be reproduced, so that we are able to investigate it in more details and find a solution for you.
Upvotes: 0