Hi, I'm new to MVC and even though there is a lot (and I do mean a lot) of information out there that is very useful - it's proofing very difficult to get a clear understanding on how to achieve my exact requirements with MVC 2.0.
I would like to set up a solution as follows:
- Provide a web UI using an MVC 2.0 project.
- Use Linq to SQL classes project for data persistence.
- I have a two separate code modules that will need to access the above Linq to SQL model - so I won't be able to include my Linq to SQL model directly in the MVC project itself.
- Also I have a Business Logic layer in front of my Linq to SQL project.
My questions are:
- How do I set up the Model part of my MVC application to point to my Linq to SQL project via my BLL?
- How do I perform web app validation? Can I use MVC 2.0 Model Validation? If not what are the alternatives?
- Finally (and slightly aside) - What is the ViewModel and how does this differ from the Model?
So many questions. But this is an exciting new technology and data access issues aside, everything else I've got to grips with very quickly and I think MVC 2.0 is fantastic.
Thanks for any pointers you can provide.