Exemple #1
0
        public static DescribeForms ForModel <TModel>(this DescribeForms describe, Action <DescribeForModel <TModel> > action)
        {
            var dfm = new DescribeForModel <TModel>(describe);

            action.Invoke(dfm);
            return(describe);
        }
Exemple #2
0
 public static DescribeField <TModel, TValue> ForField <TModel, TValue>(this DescribeForModel <TModel> describe, Expression <Func <TModel, TValue> > fieldExpression)
 {
     return(new DescribeField <TModel, TValue>(describe, fieldExpression));
 }