Ejemplo n.º 1
0
        public void Describe(DescribeForms forms)
        {
            // Describe some standard value types

            //forms.ForValue<String>()
            //   .Map(s => new StringField(s)).Unmap(f => f.Value);
        }
Ejemplo n.º 2
0
 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"));
     });
 }
Ejemplo n.º 3
0
 public void Describe(DescribeForms context)
 {
     context.ForField("Id").Suppress();
 }