ORM and MVC.net

Thread is closed for posting
2 posts, 1 answers
  1. regis
    regis avatar
    44 posts
    Member since:
    May 2009

    Posted 17 Mar 2010 Link to this post

    Hi All,

    I am trying to do the tutorial NerdDinner found on the MVC.net website using telerik ORM and telerik OpenAccess Domain Model.

    I am having hard time creating the strong typed view as specified on the tutorial here as I don't have a NerdDinner.Models.Dinner available. I tryed looking at the MVC sample telerik provides but didn't manage to find a way to do apply what is there.

    Is there a way to use the tool provided by VS2008 in order to scaffold stongly-typed views while dealing with telerik domain model.

    thank for your help
  2. Answer
    Serge avatar
    375 posts

    Posted 18 Mar 2010 Link to this post

    Hello Regis,

    I assume you have created a new Domain Model and added the Dinner and RSVP tables. If you've used the default settings then the Dinner class is in the NerdDinner namespace, not the NerdDinner.Models. 

    Another option is to create the Domain Model specifying a custom namespace, in this case NerdDinner.Models. Then the classes will be in the correct namespace.  There is however an issue with the validation, although you will be able to build the solution successfully you will get errors about an invalid namespace.

    This will be fixed in the next release.
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top