I'm trying to build a view component in a Asp.Net Core 3.1 that takes a model expression as the model.
I have the following view for which the Model is a ModelExpression. How do I get an id the same way @Html.IdFor(m => expr) would?
@model Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression
<input id="*****" name="@Model.Name" type="text" class="form-control" />