Access to model for lambda based dysplay name, etc

Developer
Nov 9, 2010 at 5:11 PM

I would like to see some kind of futures for server-side (and client-side if possible) validation:

class SomeClassMetadata : ModelMetadataConfiguration<SomeClass> {

  public SomeClassMetadata () {
   
     Configure(x=>x.SomeProperty)
       .Required(x=>x.OtherProperty ? "Text if OtherProperty is true" : "Text if OtherProperty is false");


  }

}

 

Jan 19, 2011 at 9:21 AM

This feature would be very useful.