我无法在 asp 核心中使用 Steve Anderson 的 BeginCollectionItem.使用时,我的局部视图出现错误
I cannot use BeginCollectionItem by Steve Anderson in asp core. I got an error in my partial view when I use
@using (Html.BeginCollectionItem("Entries")) { }HtmlHelper"类型是在未引用的程序集中定义的.您必须添加对程序集System.Web.Mvc,Version=2.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"的引用.
The type 'HtmlHelper' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
在 ASP core 中实现 BeginCollectionItem 的功能是否有替代方法?
is there an alternative way to achieve the functionality of BeginCollectionItem in ASP core?
推荐答案我将原始 BeginCollectionItem 移植到 .net Core 和 .Net Framework 4.6+ 上与 ASP.Net Core 一起使用.
I ported the original BeginCollectionItem to work with ASP.Net Core on .Net Core and .Net Framework 4.6+.
www.nuget/packages/BeginCollectionItemCore
更多推荐
在 ASP.net Core 中使用 BeginCollectionItem
发布评论