Page 1 of 1

Upgrade issue (from 3 to 4)

Posted: Fri 10 Jan 2014 16:35
by nimli
Hello,

While testing an upgrade from 3.1 to 4.4, I see the following error during code-recompilation:

The type of namespace name 'KeyGenerator' does not exist in the namespace 'Devart.Data.Linq.Mapping' (are you missing an assembly reference?)

This comes from the {OurProject}.Designer.cs file.

Looking at the Object Browser, I see in "Devart.Data.Linq" of LinqConnect 3.1, there's namespace "Devart.Data.Linq.Mapping.KeyGenerator". However, this namespace does not exist in the same dll of version 4.4.

I wonder if I've missed anything in my test. What should I do to solve this issue?

Thank you!!

Re: Upgrade issue (from 3 to 4)

Posted: Mon 13 Jan 2014 10:43
by MariiaI
We have made a major refactoring of the LinqConnect engine since version 4.0 and since this version the references to System.Data.Linq are removed, and LinqConnect uses only its own classes. So it is necessary to replace all occurrences of "System.Data.Linq." with "Devart.Data.Linq.".
Please check that your code (*.Designer.cs file) doesn't contain "System.Data.Linq." and there is no reference to the System.Data.Linq assembly. Please re-generate your model with the assemblies from the new version and tell us about the results.

Re: Upgrade issue (from 3 to 4)

Posted: Thu 16 Jan 2014 00:56
by nimli
Thank you for getting back to us.

Instead of re-generating the codes, we try the "Upgrade Wizard" again. But this time, we click the checkbox that says "Remove System.Data.Linq reference from source." Afterward, we are able to re-compile the code.

The issue is solved. Thank you!

Re: Upgrade issue (from 3 to 4)

Posted: Thu 16 Jan 2014 06:25
by MariiaI
Glad to see that the issue was resolved. If you have any further questions, feel free to contact us.