I am delevelopring my first MVC application and I am using a classic ADO.NET dataset as a model. The guide I am following is the NerdDinner ASP.NET MVC Tutorial and it mentions a GetRuleViolations() method for a Linq To SQL model. I would like to have a similar method to check that a datarow is valid after editing. How could I do such a thing?
Share
Datasets are disconnected. As such they don’t support validation rules unless you add constraints manually.
Edit: From the link:
You could do something similar with a typed dataset.
See this link on validation with typed datasets.