Search
Closed
as Fixed Help for as Fixed

0
Sign in to vote
0
Sign in to vote
Sign in
to vote
Type: Bug
ID: 447889
Opened: 5/11/2009 9:52:49 PM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
Entity Framework の デザイナー画面で、他のエンティティと関連のあるエンティティを削除すると、
エラー3013のビルドエラーになる。
このビルドエラーを解消する手段が、Visual Studio 2008に提供されていない。
Details (expand)
製品言語
日本語
バージョン
Visual Studio 2008 Service Pack 1
オペレーティング システム
Vista
オペレーティング システム言語
日本語
再現の手順
1. Northwndデータベースに対して、Entity Data Modelウィザードで、
Categories, Productsテーブルを 選択し、エンティティを作成
2. edmx(エンティティデザイナー)の画面で、[データベースからモデルを更新]を選択。
Suppliersテーブルを、モデルに追加。
3. Productsエンティティから、SupplierIDを削除
4. ビルドがないことを確認
5. Suppliersエンティティを削除
6. ビルドすると、
エラー 2 エラー 3013: 行 143, 155 から始まるマッピング フラグメントで問題が発生しました: テーブル マッピングがありません: テーブル Products (SupplierID) からテーブル Suppliers (SupplierID) への外部キー制約 'FK_Products_Suppliers': テーブル Suppliers にマッピングが指定されていません。
というエラーが発生。
7. モデルブラウザを表示。
8. NorthwndMode.Store - 制約 に FK_Products_Suppliers があることを確認。
9. これがあるために、ビルドエラーになっていると思われる。
モデルブラウザから、FK_Products_Suppliers を削除したいが、削除できない。
実際の結果
モデルブラウザから、FK_Products_Suppliers を削除したいが、どうやっても
削除できず、ビルドエラーを解消できない。
期待した結果
モデルブラウザのコンテキストメニューに「削除」項目が表示されるなど、
この問題を解消する手段を提供してほしい。
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 5/12/2009 at 11:22 PM

この度は、フィードバックをお送りいただき、誠にありがとうございます。 現在、お送りいただきました報告内容に基づき問題を調査中ですので、しばらくお待ちください。 よろしくお願いいたします。

[Problem Description]
When you delete an entity related to another one in the Entity Framework Designer window, build error 3013 occurs. No workaround for this build error is provided in Visual Studio 2008.

[Repro Steps]
1. Create an entity by selecting the Categories and Products tables for the Northwind database in the Entity Data Model wizard.
2. Select [Update Model from Database] in the edmx (Entity Designer) window and add the Suppliers table to the model.
3. Delete SupplierID from the Products entity.
4. Confirm there’s no build.
5. Delete the Suppliers entity.
6. When you build it, the following error occurs.
Error 2 Error 3013: Problem in Mapping Fragment starting at line 143, 155: Missing table mapping: Foreign key constraint 'K_Products_Suppliers' from table Products (SupplierID) to table Suppliers (SupplierID): no mapping specified for the table Suppliers.

7. Show the Model Browser.
8. Confirm FK_Products_Suppliers exists in the NorthwindMode.Store – constraint.
9. This seems to be the cause of the build error. FK_Products_Suppliers should be deleted from the Model Browser, but cannot.

[Actual Results]
I want to delete FK_Products_Suppliers from the Model Browser, but can never delete it and so resolve the build error.

[Expected Results]
A workaround for this issue should be provided (e.g., by showing the Delete option in the context menu of the Model Browser.)

Posted by Microsoft on 5/13/2009 at 3:31 AM
Thanks for reporting this issue. We are escalating this bug to the product unit who works on that specific feature area. The team will review this issue and make a decision on whether they will fix it or not for the next release.

Thank you,
Visual Studio Product Team
Posted by Microsoft on 5/13/2009 at 5:54 PM

(こちらは、Posted by Microsoft on 5/13/2009 at 3:31 AM の和訳です。)

問題をご報告いただき、ありがとうございます。 こちらのバグに関しましては、該当する機能を専門で担当している製品チームに報告させていただきます。 今後は、同チームが問題を再調査し、次期リリースでの修正について判断する予定です。 よろしくお願いいたします。

Visual Studio 製品チーム

Posted by Microsoft on 5/14/2009 at 3:13 PM
Thanks for reporting this issue. We have made a change to this feature where you will get an option to delete the Store side information as well when you delete a C side Entity. This problem does not appear with the new feature in place.

Data Programmability Tools Team
Posted by Microsoft on 5/15/2009 at 2:12 AM

(こちらは、Posted by Microsoft on 5/14/2009 at 3:13 PM の和訳です。)

問題をご報告いただきありがとうございます。 私たちは、こちらの機能に変更を加えましたので、C-side のエンティティを削除する際に Store-side の情報も削除するオプションをご利用いただくことができるようになります。 この新機能が備わったことにより、こちらの問題は発生しません。

データ プログラマビリティ ツール チーム