Invalid reverse enginered schema from Oracle

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
[email protected]
Posts: 10
Joined: Mon 30 May 2011 20:58

Invalid reverse enginered schema from Oracle

Post by [email protected] » Mon 30 May 2011 21:33

I reverse engineered 2 tables from an oracle database into a lqml model in VS 2010. The designer generated mappings like this:

According to the xsd of the editor and the runtime schema check of XmlMappingSource, MaxLength and Scale is invalid attribute.
If I manually remove them, the mapping works as expected.

What is the problem?

Regards,
Zsolt

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by StanislavK » Tue 31 May 2011 09:28

LinqConnect models store additional mapping details in .lqml files. Thus, these files should not be used as a source of external mapping, since they don't conform to the standard schema.

To resolve the problem, please set the 'Mapping Mode' model property to 'File'. In this case, Entity Developer will generate an .xml mapping file with the standard schema. Please use this file instead of .lqml as an external mapping source.

Feel free to contact us if you encounter any problems with this.

[email protected]
Posts: 10
Joined: Mon 30 May 2011 20:58

Post by [email protected] » Wed 01 Jun 2011 20:49

Thank you, now, it works nicely. :)

Your product is great, but you have to write much more docs and articles, because I didn't find anything about the discussed things.

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Post by StanislavK » Thu 02 Jun 2011 10:01

Thank you for your assistance, we will update the topic on XML mapping in our documentation.

Post Reply