Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

EF6 error 3013 - missing table mapping / problem mapping fragments (0 to 0 or 1)

$
0
0

Table Owners PK ownerId

&

Table QbOwners FK ownerId  with a unique index on ownerId

Think I have a 1 to 0 or 1 relationship which SSMS shows as many to many.

Updating the model from db gives me an error message


Error Error 3013: Problem in mapping fragments starting at line 5997:Missing table mapping: Foreign key constraint 'FK_QbOwners_Owners' from table QbOwners (ownerId) to table Owners (OwnerId): no mapping specified for the table QbOwners.  C:\Users\wavemaster\Source\Repos\VT\WebSite1\App_Code\Model.edmx 5998

I cannot find QbOwners in the diagram or in the model browser.

How do I fix this?


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>