Asp.Net MVC2 TekPub Starter Site methodology question

Posted by Pino on Stack Overflow See other posts from Stack Overflow or by Pino
Published on 2010-06-07T20:08:14Z Indexed on 2010/06/07 20:12 UTC
Read the original article Hit count: 345

Ok I've just ran into this and I was only supposed to be checking my emails however I've ended up watching this (and not far off subscribing to TekPub).

http://tekpub.com/production/starter

Now these app is a great starting point, but it raises one issue for me and the development process I've been shown to follow (rightly or wrongly). There is no conversion from the LinqToSql object when passing data to the view. Are there any negitives to this?

The main one I can see is with validation, does this cause issues when using MVC's built in validation as this is somthing we use extensivly. Because we are using the built in objects generated by LinqToSql how would one go about adding validation, like

[Required(ErrorMessage="Name is Required")]
public string Name {get;set;}

Interested to understand the benifits of this methodology and any negitives that, should we take it on, experiance through the development process.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about best-practices