编辑时如何在产品列表中设置选定的值?
<Blazored.Typeahead.BlazoredTypeahead SearchMethod="RicercaCategoria" @bind-Value="categoriaSelezionato" EnableDropDown="false" Placeholder="Scegli o aggiungi la Categoria"> <SelectedTemplate>@context.NomeCategoria</SelectedTemplate> <ResultTemplate>@context.NomeCategoria</ResultTemplate> </Blazored.Typeahead.BlazoredTypeahead>
从列表中,我可以看到要查看的类别。相反,我从数据库中恢复了我感兴趣的记录