error 2039 BUG

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
flashlin
Posts: 2
Joined: Wed 04 Nov 2009 09:23

error 2039 BUG

Post by flashlin » Wed 04 Nov 2009 09:31

When I use EdmGen.exe /provider:Devart.Data.Oracle /mode:FullGeneration /connectionstring:xxx /project:xxx /namespace:xxx

It will apper the following many error
error 6003: Schema specified is not valid. Errors:
(1,2518049) : error 2039: The conceptual side property 'xxxxx' has alread
y been mapped to a storage property with type 'decimal'. If the conceptual side
property is mapped to multiple properties in the storage model, make sure that a
ll the properties in the storage model have the same type.

But I use other Provider
EdmGen.exe /provider:DDTek.Oracle /mode:FullGeneration /connectionstring:xxx /project:xxx /namespace:xxx

It is OK.

Shalex
Site Admin
Posts: 8247
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Wed 04 Nov 2009 14:10

Could you please post here or send us (http://www.devart.com/company/contact.html) the script of your database objects import of which generates this error?

flashlin
Posts: 2
Joined: Wed 04 Nov 2009 09:23

Post by flashlin » Thu 05 Nov 2009 02:51

Because this are commercial Tables, they can not provide.
And there are too many Tables, there is no way simulation of the corresponding Tables to you.

There are other ways to find this kind of problem?

Shalex
Site Admin
Posts: 8247
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Thu 05 Nov 2009 09:40

Sometimes our users send us DDL scripts with hundreds of objects. We guarantee that user's script will be used only on our test server for test purposes only. We need at least a small script that illustrates the problem to help us identify the reason of the issue or submit that this database structure is not compatible with Entity Framework.

You can try creating the model using EDM Wizard that is embedded in Visual Studio. EDM Wizard uses the same engine of creating EF model as EdmGen.exe does, although some difference is possible.

We recommend you to create an EF model with our Entity Developer. Entity Developer uses entirely different engine for creating EF model. It is possible that using Devart Entity Developer will resolve the problem you have encountered. We supply Entity Developer for dotConnect with all our providers, and you can run it in two alternative ways:
  • from Visual Studio (Solution Explorer | right click on your project -> Add -> New Item -> Devart Entity Model);
  • run Entity Developer as a separate application and navigate in it: File -> New Project -> Entity Framework Model.

Post Reply