Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error 2062: no mapping between entity set and association set

Are entities required to be mapped to a table or can they map to a stored procedure?

I have an entity that does not map to any specific table, instead it maps to a stored procedure.

I am getting the following error:

Schema specified is not valid. Errors: Model.msl(6,6) : error 2062: No mapping specified for instances of the EntitySet and AssociationSet in the EntityContainer HNFS_ProviderEntities.

like image 472
Chuck Conway Avatar asked Oct 13 '10 07:10

Chuck Conway


1 Answers

It appears to be yes: http://msdn.microsoft.com/en-us/library/bb896279.aspx

It turns out that instead of an entity I needed to use a complex type.

like image 95
Chuck Conway Avatar answered Oct 25 '22 03:10

Chuck Conway