Business Studies, asked by lousistron987, 1 year ago

the entity type employee is not part of the model for the current context.'

Answers

Answered by alinakincsem
0

Please find the answer below:


The entity type employee is not part of the model for the current context, because;


(i) The 'DbContext' is being configured with an incorrect connection string .


(ii) The entity specified is not mapped in configuration .


It can be figured out taking the entity that is ‘not part of the model’ and view it using the Model/Entity Diagram (*.edmx). Right click, and Validate. Then, Next, Save and Build. It can be done if you are using the Entity Framework and generating the model from the database

Answered by Anonymous
2

Explanation:

(i) The 'DbContext' is being configured with an incorrect connection string

.

(ii) The entity specified is not mapped in configuration

.

Similar questions