I have created a Plugin and created a table from installation section and want to perform CRUD operations in plugin but this table's entity and model class has to be inside plugin not in Libraries (means independent of Nop.Core and Nop.Data).
Now when I try to fetch this table I get following error:
The entity type PopularToys is not part of the model for the current context.
I was facing same issue " Message "The entity type xxxxxxx is not part of the model for the current context." string"
When I was trying to create a new table and try to use CRUD operation using Entity framework. Then I was facing same exception. For it, I have to create a new file for Table mapping in Library mapping directory. After that, issue is resolved at my end.
I was facing same issue " Message "The entity type xxxxxxx is not part of the model for the current context." string"
When I was trying to create a new table and try to use CRUD operation using Entity framework. Then I was facing same exception. For it, I have to create a new file for Table mapping in Library mapping directory. After that, issue is resolved at my end.
Make sure column exist in table or column name and entity object name are same in core domain model.