예제 #1
0
 public MvcHtmlString EditorFor <TProperty>(Expression <Func <TModel, TProperty> > expression, EditorOptions options, object htmlAttributes)
 {
     return(EditorFor(expression, options, HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes)));
 }
예제 #2
0
        public MvcHtmlString EditorFor <TProperty>(Expression <Func <TModel, TProperty> > expression, EditorOptions options, IDictionary <string, object> htmlAttributes)
        {
            if (expression == null)
            {
                throw new ArgumentNullException("expression");
            }

            return(CreateEditor(
                       ModelMetadata.FromLambdaExpression(expression, Helper.ViewData),
                       ExpressionHelper.GetExpressionText(expression),
                       options,
                       htmlAttributes));
        }
예제 #3
0
 public MvcHtmlString EditorFor <TProperty>(Expression <Func <TModel, TProperty> > expression, EditorOptions options)
 {
     return(EditorFor(expression, options, new RouteValueDictionary()));
 }