ModelExpressionProvider Class

Definition

Provides ModelExpression for expressions.

public ref class ModelExpressionProvider : Microsoft::AspNetCore::Mvc::ViewFeatures::IModelExpressionProvider
public class ModelExpressionProvider : Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider
type ModelExpressionProvider = class
    interface IModelExpressionProvider
Public Class ModelExpressionProvider
Implements IModelExpressionProvider
Inheritance
ModelExpressionProvider
Implements

Constructors

ModelExpressionProvider(IModelMetadataProvider, ExpressionTextCache)

Creates a new ModelExpressionProvider.

ModelExpressionProvider(IModelMetadataProvider)

Creates a new ModelExpressionProvider.

Methods

CreateModelExpression<TModel,TValue>(ViewDataDictionary<TModel>, Expression<Func<TModel,TValue>>)

Returns a ModelExpression instance describing the given expression.

CreateModelExpression<TModel>(ViewDataDictionary<TModel>, String)

Returns a ModelExpression instance describing the given expression.

GetExpressionText<TModel,TValue>(Expression<Func<TModel,TValue>>)

Gets the name for expression.

Applies to