我在 asp.net core 中无法使用 Steve Anderson 的 BeginCollectionItem。 当我使用它时,我的部分视图会出现错误。
@using (Html.BeginCollectionItem("Entries"))
{
}
类型“HtmlHelper”在一个未被引用的程序集中定义。您必须添加对程序集“System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”的引用。
在ASP.net core中是否有实现BeginCollectionItem功能的替代方法?