Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using BeginCollectionItem in ASP.net Core

I cannot use BeginCollectionItem by Steve Anderson in asp.net core. I got an error in my partial view when I use

@using (Html.BeginCollectionItem("Entries")) 
{

}

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'.

is there an alternative way to achieve the functionality of BeginCollectionItem in ASP.net core?

like image 600
Segmentation Fault Avatar asked Aug 10 '16 05:08

Segmentation Fault


1 Answers

I ported the original BeginCollectionItem to work with ASP.Net Core on .Net Core and .Net Framework 4.6+.

https://www.nuget.org/packages/BeginCollectionItemCore

like image 63
Segmentation Fault Avatar answered Nov 03 '22 22:11

Segmentation Fault