Entity Framework 4.2では、PKを持たないテーブルに値を挿入しようとしています。 、私はEDMXファイルを編集して、それを微調整することが可能であるが、それはあなたがDbContext
クラスを使用して作業している最良のケースではないことを理解し、以下の議論からEntity Framework 4.2:PKなしのテーブルのInsertFunction
Unable to update the EntitySet 'ConditionTypesForWebApplications' because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element to support the current operation.
:EFは私に、次のエラーが発生します。
How do you update a table with a foreign key to another table in ADO.Net Entity Model?
このことを可能にする任意のより良い方法はありますか?
なぜPKなしのURテーブルですか? –