Thursday, 15 January 2015

c# - Cannot created a new mvc 5 controller when using a reference from other solution -


I am facing a strange problem, possibly some of its simplest ...

when I will not be visible in the list of 'Product' model class', for example, using a controller unit frame option, this happens when the object 'product' is located in the second solution. (Reference to my website project from other solutions).

When I am using a domain model in the same solution or in the same project Web site => object is visible for selection in 'Model Class'

Such Visual Studio 2013 , MVC 5, and the Entity Framework 6.1.1 together with the code and C #.

> Any advice will be appreciated

thanks

towards

  • Temporarily add the project that has the 'product' category for this solution.
  • Create a solution.
  • You should now be able to make controller using scaffolding.
  • You can then remove the project from the solution. (And its DLL reference if necessary)

No comments:

Post a Comment