This is a migrated thread and some comments may be shown as answers.

Basic Example

1 Answer 165 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Cole
Top achievements
Rank 1
Cole asked on 12 Jan 2009, 07:35 PM
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.

Thx,
Rob

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 15 Jan 2009, 01:24 PM
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.

Greetings,
Alexander
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Getting Started
Asked by
Cole
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or