This question is locked. New answers and comments are not allowed.
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
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