Basic Example

Thread is closed for posting
2 posts, 0 answers
  1. Cole
    Cole avatar
    20 posts
    Member since:
    Jun 2008

    Posted 12 Jan 2009 Link to this post

    Hey all,

    I am hoping that this post can spring-board me (as well as others) into using the tool quicker.  I'm also learning ASP.NET MVC concurrently as i revamp a project, so the easier I can learn the basics, the better! :)

    My project has several components, MyProject.MVC.Web, MyProject.Data, MyProject.Services, MyProject.Test etc.

    My DB currently just has 2 tables, Customer and CustomerPreferences.  CustomerPreferences has a FK to the PK Customer.ID.

    Customer has, for purposes of example, FirstName, LastName, ID, Username, Password.

    In MyProject.Data I run the ORM tool and generate the relevant classes... Customer, and CustomerPreferences.

    I would then theoretically go to my MyProject.Services and create an interface/service for Customer related actions. 

    Now what?  I really am not sure how to do the basics of...
       - adding a customer
       - authenticating a username/password
       - loading customer preferences by customer ID.

    Anyone able to help me with some jump-start code/explanations on this?  I see references to scope, and a query notation I am not overly familiar with atm, so any help is appreciated.  I am fine to research this topic over the next few weeks as I use the tool and build up some knowledge... but hopefully this post can assist me in accelerating the initial learning curve if possible.

  2. Alexander
    Alexander avatar
    727 posts

    Posted 15 Jan 2009 Link to this post

    Hello Robin,

    I see you are already familiar with enabling a project with OpenAccess and forward/reverse mapping wizards. I suggest you to take a look at our Knowledge Base. The basic Create/Retrieve/Update/Delete operations are described in this example. I believe you will find interesting the Generic methods for object retrieval article as well. Also in the following days we will have an MVC specific blog post, and a running example as well. Hope this helps for now, if you have any further questions do not hesitate to contact us.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top