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 테이블은 왜 있습니까? –