Visual studio 2012 error on creating LinqConnect

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
gappani
Posts: 2
Joined: Tue 14 Jan 2014 22:40

Visual studio 2012 error on creating LinqConnect

Post by gappani » Tue 14 Jan 2014 22:44

When I try to generate .lqml file threw wizard, I get the following error on the very last end, when I press the finish button: "A method name "TEST" already exists. Please choose a different name." Any ideas why???

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Visual studio 2012 error on creating LinqConnect

Post by MariiaI » Wed 15 Jan 2014 11:33

This error occurs when attempting to add a method with the same name as one of methods already available in the model. However, if this is done automatically (e.g., the method is added by a wizard), Entity Developer should implicitly change the name of the second method.

Could you please specify the following, so that we are able to analyze the issue in more details:
- the version of LinqConnect you are using;
- the DBMS you are working with, etc.;

If possible, please specify the script needed to create the database objects and/or send us the model with which the issue occurs.

gappani
Posts: 2
Joined: Tue 14 Jan 2014 22:40

Re: Visual studio 2012 error on creating LinqConnect

Post by gappani » Wed 15 Jan 2014 14:06

Thank you for your reply. Here is some data:

LinqConnect version: 4.4.403.0
Visual Studio 2012 version: 11.0.50727.1
Development OS: Windows 8.1
Oracle database 11g version: 11.2.0.2.0

I'we checked the .lqml file that was generated, and it actually has two methods with name "Test"

<Function Name="KPA.TEST" Method="TEST" ed:Guid="afd97ebe-4763-4f4b-9973-cb6563480f0f">
<Return Type="System.Int32" />
</Function>

<Function Name="KPA.TEST_DATUMOV.TEST" Method="TEST" ed:Guid="7d1f967d-8b7a-4178-9bc4-37974da65e0d">
<Parameter Name="IN_DATUM" Type="System.DateTime" DbType="DATE" />
<Return Type="System.Int32" />
</Function>

Error occurs regarding of which tables or views from database I want to generate LinqConnect with wizard. Even if only one view is selected to generate Linq, error still occurs.

I tested also with the same version of LinqConnect with VisualStudio 2010 on another machine. The same error occurs.

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Visual studio 2012 error on creating LinqConnect

Post by MariiaI » Thu 16 Jan 2014 14:20

We couldn't reproduce this issue in our environment. Please send us the DDL/DML scripts for the database objects that should be added to the model and with which the error occurs, so that we are able to find its reason and solution.

Post Reply