public void Describe(DescribeForms forms) { // Describe some standard value types //forms.ForValue<String>() // .Map(s => new StringField(s)).Unmap(f => f.Value); }
public void Describe(DescribeForms context) { context.ForModel <SpecialOffer>( f => { // Suppress start/end dates f.ForField(m => m.StartDate).Suppress(); f.ForField(m => m.EndDate).Suppress(); // f.AddField("AppliesOn", // m => new DateRange(m.StartDate, m.EndDate), // on=>on.Meta("Date range during which the offer takes effect")); }); }
public void Describe(DescribeForms context) { context.ForField("Id").Suppress(); }