Problem: When I want to create controller from EF codefirst context it give me this error:
There was an error running the selected code generator.Unable to retrieve metadata for Model.class name.Ambiguous match found.
What I did?
- As my model data was in seprate assembly I updated all package or downgrade them but nothing happened.
- Then I merged my Model assembly in Website project but error doesn't resolved.
- After googleing and many tricks, I created clean project and scaffolding for each class but it seems only one class had this problem.
- In that class I commented all property and uncomment one by one to find error.
- Found it! For this property error occurs
public bool ISActive { get; set; }
I surprised so much and found how dot net turture you!! What do you think about solution?!!