1
我在我的項目中有幾十個這些警告,我想清理一些東西。該警告是:此.NET Entity Framework警告是什麼意思?
Warning 8 Error 2005: Mapping Association 'TPMDBO_TPM_MODIFIEDVALUES_FK1' is redundant: Its referential integrity constraint provides sufficient information. You can safely delete the mapping information for this association. C:\TPM\Entity\TPMEntities.edmx 6267 6277 Entity
如果我雙擊它,它加載的.edmx文件,這是很難讀或找出我可以安全地刪除了一些可怕的設計師。我寧願直接使用我選擇的文本編輯器來處理XML。
線6267說:
<AssociationSetMapping Name="TPMDBO_TPM_MODIFIEDVALUES_FK1" TypeName="VZW.TrainingPortfolioManager.Entity.TPMDBO_TPM_MODIFIEDVALUES_FK1" StoreEntitySet="TPM_PROJECTCHANGES">
<EndProperty Name="TPM_MODIFIEDVALUES">
<ScalarProperty Name="MODIFIEDATTRIBUTEID" ColumnName="MODIFIEDATTRIBUTEID" />
</EndProperty>
<EndProperty Name="TPM_PROJECTCHANGES">
<ScalarProperty Name="PROJECTID" ColumnName="PROJECTID" />
<ScalarProperty Name="VERSIONID" ColumnName="VERSIONID" />
<ScalarProperty Name="MODIFIEDATTRIBUTEID" ColumnName="MODIFIEDATTRIBUTEID" />
<ScalarProperty Name="CHANGEID" ColumnName="CHANGEID" />
</EndProperty>
</AssociationSetMapping>
這是否意味着我可以完全XML刪除此AssociationSetMapping
節點?謝謝!
看到類似的問題:http://stackoverflow.com/questions/3186961/warnings-in-edmx-file-when-upgrading-from-3-5-to-4 – 2012-06-05 19:36:47