FubuMvcArchive / fubuvalidation

FubuValidation -- have validation your way, whatever way that happens to be

Home Page:http://validation.fubu-project.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to define class validation rules against an interface

jeremydmiller opened this issue · comments

We hit this at work. Say I have an interface called "IFoo" and two classes named "OneFoo" and "TwoFoo." I'd like to be able to define the common validation rules w/

public class FooRules : ClassValidationRules where T : IFoo

then....

public class OneRules : FooRules

and

public class TwoRules : FooRules