I build MVC3 app with EF 4.3 (database first) using DBContext Generator and using Scaffolding options template to create controller with its views so it creates a view with the model (data annotations) client validation depending on the properties of fields in db.
the client validation for 'Field Required'
work fine with numeric fields not with nvarchar fields (at least in my case)
my case,
table/class -> Table1
id
Name -> nvarchar(50) -> not allow null
Count -> int -> not allow null
the validation rule 'Required'
works fine with 'Count'
field, but not with 'Name'
field
is there any idea why??