Closed pranavkm closed 5 years ago
HtmlHelper<T>.GetExpressionName
public instead of making ExpressionHelper
public.IModelExpressionProvider.CreateModelExpression
- https://github.com/aspnet/Mvc/blob/master/src/Microsoft.AspNetCore.Mvc.ViewFeatures/ModelExpressionProvider.cs#L42-L65 - could be used in place of ExpressionMetadataProvider.FromLambdaExpression
. The change was to add another overload to support the ExpressionMetadataProvider.FromStringExpression
equivalent.Adds new APIs to ModelExpressionProvider
and additionally expose them via HtmlHelper<T>
. The former would be the DI way to get these APIs, the latter is convenience APIs that's useful in HtmlHelper<T>
extension methods or when downcase from IHtmlHelper<T>
cc @San4es
Closing in favor of https://github.com/aspnet/AspNetCore/pull/4494/files
Fixes https://github.com/aspnet/Mvc/issues/8724