Search

German VS2010: Error in "ADO.NET Self-Tracking Entity Generator" template by cherit13

Resolved
as Not Reproducible Help for as Not Reproducible

2
0
Sign in
to vote
Type: Bug
ID: 679283
Opened: 7/13/2011 6:00:29 AM
Access Restriction: Public
1
Workaround(s)
0
User(s) can reproduce this bug
The ADO.Net Self-Tracking Entity Generator has been incorrectly translated to German such that the generated T4 templates cannot be compiled without significant manual correction. The problem in the generated T4 templates is that quotation marks are nested within strings that are themselves enclosed in quotation marks.

For instance, in the Model1.tt file I see the following line (commented out with either // in C# or ' in VB) that is the source of one of the errors:

<#=String.Format(CultureInfo.CurrentCulture, "Zeichnet die ursprünglichen Werte für die komplexe Eigenschaft "{0}" auf", edmProperty.Name)#>

When I fix this error by changing it to read '{0}', I get more errors in the generated class files such as

InvalidOperationException("Das Prinzipalende einer identifizierenden Beziehung kann nur geändert werden, wenn das abhängige Ende den Status "Hinzugefügt" aufweist.")

(Resubmitted from rejected German ticket at http://connect.microsoft.com/VisualStudio/feedback/details/560612/fehler-im-t4-template-beim-hinzuf-gen-eines-ado-net-entit-ts-generator-mit-selbstnachverfolgung-zum-entit-ts-model-self-tracking-entities)
Details (expand)

Visual Studio/Silverlight/Tooling version

Visual Studio 2010 SP1

Steps to reproduce

Using German Visual Studio 2010 complete the following steps:
1) New C# or VB.Net Projekt (both yield the same error).
2) Add item ADO.Net Entity Data Model and generate from database. (Select at least one table to add to the model.)
3) In the .edmx-Designer window opened after (2), right-click and choose "Neues Codegenerierungselement hinzufügen...". Choose "ADO.NET-Entitäts-Generator mit Selbstnachverfolgung" (in the "Code" category) and continue.

Notice how the project can no longer be compiled.

Product Language

German

Operating System

Windows 7

Operating System Language

German

Actual results

The project in which the German "ADO.Net Self-Tracking Entity Generator" is used cannot be compiled.

Expected results

Should function similar to the English version of Visual Studio 2010 SP1; identical steps in that Visual Studio Version do not result in any problems compiling the project.
File Attachments
0 attachments
Sign in to post a comment.
Posted by MS-Moderator07 [Feedback Moderator] on 7/19/2011 at 11:45 PM
Hi, given that we have not heard back from you in 7 days. We will go ahead and close this Connect Issue. If you get a chance to review and provide the information requested earlier, you can go ahead and reactivate this issue.
Posted by MS-Moderator07 on 7/15/2011 at 2:31 AM
I am currently standing by for an update from you and would like to know how things are going on your end. If you could get back to me at your earliest convenience with information I request, we will be able to make headway towards a resolution. I look forward to hearing from you.
Posted by MS-Moderator07 on 7/13/2011 at 6:48 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.

Could you please give us a video of this issue so that we can conduct further research?

Please submit this information to us within 4 business days. We look forward to hearing from you with this information.

Microsoft Visual Studio Connect Support Team
Posted by MS-Moderator01 on 7/13/2011 at 6:49 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by cherit13 on 7/13/2011 at 6:02 AM
Locate the following file:

<32bit Program-Directory>\Microsoft Visual Studio 10.0\Common7\IDE\de\Microsoft.Data.Entity.Design.Resources.dll

Remove this file from this directory. For instance, I created a subfolder "moved" and moved the file to this subfolder.

Close all instances of Visual Studio 2010. Reopen Visual Studio 2010 and complete the steps that originally lead to this problem. The generated T4 templates for self-tracking objects in Entity Framework will be correct, albeit in English.