J
jeff413
I am using the Microsoft AdventureWorks2008 sample database and trying to
create an EF EDMX model so I can try EF out. Whenever I try to add
ProductModel or ProductSubCategory tables to model and have EF associate
either of these tables with the Product table I get an error like the
following:
Error 1 Error 3007: Problem in mapping fragments starting at lines 488,
535:Column(s) [ProductSubcategoryID] are being mapped in both fragments to
different conceptual side properties.
C:\Users\Owner\Documents\Visual Studio
10\Projects\EntityFramework\AdventureWorks.Data\AdventureWorksDBFirst.edmx 536 11 AdventureWorks.Data
I have tried hand editing the edmx and renaming or deleting the association.
This always seems to result in more errors for me. The only thing that
works is physically deleting the foreign key from database and refreshing the
model but then I don't have a navigation property between the entities.
Can someone please explain what this error means and how I can get around it?
create an EF EDMX model so I can try EF out. Whenever I try to add
ProductModel or ProductSubCategory tables to model and have EF associate
either of these tables with the Product table I get an error like the
following:
Error 1 Error 3007: Problem in mapping fragments starting at lines 488,
535:Column(s) [ProductSubcategoryID] are being mapped in both fragments to
different conceptual side properties.
C:\Users\Owner\Documents\Visual Studio
10\Projects\EntityFramework\AdventureWorks.Data\AdventureWorksDBFirst.edmx 536 11 AdventureWorks.Data
I have tried hand editing the edmx and renaming or deleting the association.
This always seems to result in more errors for me. The only thing that
works is physically deleting the foreign key from database and refreshing the
model but then I don't have a navigation property between the entities.
Can someone please explain what this error means and how I can get around it?