LINQ support

Dec 8, 2010 at 11:51 AM

It would be great if a LINQ object could be used for the ModelType.

If anyone else is looking for a way to do this with the current version of xVal then see here for a way to add the required ComponentModel.DataAnnotations to your LINQ classes, to allow the classes to be used with xVal: http://stackoverflow.com/questions/2281464/adding-dataannotations-to-auto-generated-dbml-class-mvc-2-0-asp-net. This does require manually creating a new class for every Model you plan to validate though.