Asp.NET MvcHtmlString and ModelMetadata.FromLambdaExpression to AspNetCore?
<p>How to convert this code to AspNetCore</p>

<pre><code>public static MvcHtmlString ChqLabelFor&lt;TModel, TValue&gt;(this HtmlHelper&lt;TModel&gt; html,
            Expression&lt;Func&lt;TModel, TValue&gt;&gt; expression, object htmlAttributes)
        {
            var metadata = ModelMetadata.FromLambdaExpression(expression, html.ViewData);
            string resolvedLabelText = metadata.DisplayName ?? metadata.PropertyName;
            if (metadata.IsRequired)
            {
                resolvedLabelText += "*";
            }
            return LabelExtensions.LabelFor&lt;TModel, TValue&gt;(html, expression, resolvedLabelText, htmlAttributes);
        }
</code></pre>

<p>I know that I can use now instead of <code>MvcHtmlString</code> just <code>HtmlString</code>  </p>

<p>What to do with </p>

<pre><code>ModelMetadata.FromLambdaExpression
</code></pre>

<p>I couldn't find any alternative ...</p>