This is a migrated thread and some comments may be shown as answers.

Problem when updating...

1 Answer 43 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paul R.
Top achievements
Rank 1
Paul R. asked on 16 Jan 2012, 10:01 PM
First time getting into ORM & I'm having an issue.

Within my ORM project in my \data\ folder I have a rlinq file which contains many .cs files.  One of them is named Employee.cs

When I do an update from the database & save changes I'm getting a new file created called Employee2.cs, which contains a number of definitions already defined within the original.

Thanks for you help.

1 Answer, 1 is accepted

Sort by
0
Damyan Bogoev
Telerik team
answered on 19 Jan 2012, 11:32 AM

Hi Paul,

It seems that the file is somehow cached in the project by Visual Studio. Could you please try to edit the csproj file manually by removing the Compile node for the Employee.cs?
- Right-click the project in the solution and select "Unload Project";
- Right-click on it again and select "Edit MyProject.csproj";
- Try to remove Compile node for the Employee.cs file;
- To open the project again, right click and select "Reload Project";

If the project is under source control it is possible that the file is not checked out correctly and removed. Could you please try getting specific version of the files using the “Get Specific Version” command with "Overwrite writable files that are not checked out" and "Overwrite all files even if the local version matches the specified version" options checked. Later on check the file that should be removed out, delete the class from the visual designer and save the model.
If the suggested approaches do not help, I should ask you to provide us with a sample project that shows the wrong behavior to investigate the cause for the problem further.
I am looking forward to hearing from you.

Kind regards,
Damyan Bogoev
the Telerik team

SP1 for Q3’11 of Telerik OpenAccess ORM is available for download

Tags
Getting Started
Asked by
Paul R.
Top achievements
Rank 1
Answers by
Damyan Bogoev
Telerik team
Share this question
or