Page 1 of 1

error 2039 BUG

Posted: Wed 04 Nov 2009 09:31
by flashlin
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.

Posted: Wed 04 Nov 2009 14:10
by Shalex
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?

Posted: Thu 05 Nov 2009 02:51
by flashlin
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?

Posted: Thu 05 Nov 2009 09:40
by Shalex
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.