aspnet / Mvc

[Archived] ASP.NET Core MVC is a model view controller framework for building dynamic web sites with clean separation of concerns, including the merged MVC, Web API, and Web Pages w/ Razor. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
5.62k stars 2.14k forks source link

Re-enable extensibility points for ExpressionHelper.GetExpressionText, ExpressionMetadataProvider.FromStringExpression #8748

Closed pranavkm closed 5 years ago

pranavkm commented 5 years ago

Fixes https://github.com/aspnet/Mvc/issues/8724

pranavkm commented 5 years ago

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>

pranavkm commented 5 years ago

cc @San4es

pranavkm commented 5 years ago

Closing in favor of https://github.com/aspnet/AspNetCore/pull/4494/files