I don't know whether people have already asked this question or they haven't seen this problem or whatever.
I am Creating Strongly type view for each Create view.
I am validating the form at server side by making partial class of LINQ class Entities.
By adding Function Like
public IEnumerable<RuleViolation> GetRuleViolations()
{
if (String.IsNullOrEmpty(Name))
yield return new RuleViolation("Name is Required", "Name");
if (String.IsNullOrEmpty(Date.ToString()))
yield return new RuleViolation("Date is Required", "Date");
yield break;
}
My controller action is structured like

(source: scottgu.com)
Problem :
If Name Field Length is Varchar2(10), And user enters name exceeded this limit then product (see image) object will have name as Empty string.
More over Other Problems are same as above like date If user doesn't Enter Date then also object will have date something like 1/1/0001.
Summary : Should we use this method? Or to use Method like get all elements by using FormColletion or Request.Form...
Cam you give me the best suggestion for it?
Also see Justin_etheredge's post