Problems with LinqConnect
Problems with LinqConnect
I am trying to connect to an Oracle database using LinqConnect. After I choose the tables I want in my model I get an error “A method called Insert_record already exists. Please choose a different name.” This is a show stopper as the wizard does not complete the process and create the model.
I need some help urgently!
I need some help urgently!
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
This error occurs on an attempt to add a method with the same name as one of methods already available in the model. If this is done automatically (e.g., the method is added by a wizard), however, 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 (or dotConnect for Oracle) you are using;
- the exact scenario you are trying to perform when the issue occurs (e.g., you create the model via a wizard, or drop the tables from the Database Explorer tool window).
If possible, please specify the script needed to create the database objects and/or send us the model with which the issue occurs.
I've deleted your duplicate post.
Could you please specify the following, so that we are able to analyze the issue in more details:
- the version of LinqConnect (or dotConnect for Oracle) you are using;
- the exact scenario you are trying to perform when the issue occurs (e.g., you create the model via a wizard, or drop the tables from the Database Explorer tool window).
If possible, please specify the script needed to create the database objects and/or send us the model with which the issue occurs.
I've deleted your duplicate post.
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
Please use our contact form:
http://www.devart.com/company/contact.html
or send the model to support*devart*com (replace the asterisks with '@' and a dot).
http://www.devart.com/company/contact.html
or send the model to support*devart*com (replace the asterisks with '@' and a dot).
I sent a mail to [email protected] with project directory and screen sht of error received.
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
Thank you for your assistance, we have reproduced the issue. Apparently, it occurs when adding two methods that have the same name, but are declared in different packages. We will analyze the issue and inform you about the results as soon as possible.
As a temporary workaround, you can open the .lqml file in a test editor and manually rename the methods with duplicate names.
Eg., replace the entries like
with
Please tell us if this helps.
As a temporary workaround, you can open the .lqml file in a test editor and manually rename the methods with duplicate names.
Eg., replace the entries like
Code: Select all
Code: Select all
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
Could you please specify what exactly you mean saying that the model is not available (e.g., the code is not re-generated, or you encounter an exception when trying to create a context)? The proper steps are:
- to change the method names in the .lqml file in a text editor;
- save this file and open it via Entity Developer;
- re-generate the model code;
- launch your application.
We are still working on this issue, we will post here when it is fixed.
- to change the method names in the .lqml file in a text editor;
- save this file and open it via Entity Developer;
- re-generate the model code;
- launch your application.
We are still working on this issue, we will post here when it is fixed.
-
- Devart Team
- Posts: 1710
- Joined: Thu 03 Dec 2009 10:48
The issue with creating methods having the same name is fixed. The fix is available in the latest 3.0.14 build of LinqConnect.
The new build can be downloaded from
http://www.devart.com/linqconnect/download.html
(the trial and free versions) or from Registered Users' Area (for users with active subscription only).
For the detailed information about the fixes and improvements available in LinqConnect 3.0.14, please refer to
http://www.devart.com/forums/viewtopic.php?t=22548
The new build can be downloaded from
http://www.devart.com/linqconnect/download.html
(the trial and free versions) or from Registered Users' Area (for users with active subscription only).
For the detailed information about the fixes and improvements available in LinqConnect 3.0.14, please refer to
http://www.devart.com/forums/viewtopic.php?t=22548