This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I am new to MVC so I am sorry if this is a stupid question. I have run through the guide to setting up Lightspeef with MVC. In my controller I am inheriting LightSpeedControllerBase I have my LightSpeedContext override. When I try to 'Add View' in my controller and Create a strongly-typed view, my models I have built and Lightspeed classes don't show in the model class list. In the same controller I returned to inheriting a standard 'Controller' and removed the override. Now when I clock 'Add View' my models appear including the Lightspeed classes. I forgot to mention that In the global file I have added LightSpeedEntityModelBinder.Register(typeof(MyModelUnitOfWork).Assembly); Am I doing it wrong? |
|
|
No you are not doing anything wrong - the LightSpeed entities wont show in that list, you will just need to specify these manually in the model definition for your view if you intend to use them as a view model.
|
|