In View i have many checkbox where i can choose few AdventureCategory
<input type="text" asp-for="adventureName"/>//field from Adventure table, it's ok<input type="checkbox"for="AdventureCategory.categoryName"value="swimming">//this return error "Element <ICollection>AdventureCategory does not contain a definition for adventureName"<input type="checkbox"for="AdventureCategory.categoryName"value="running">//this return error "Element <ICollection>AdventureCategory does not contain a definition for adventureName"<input type="checkbox"for="AdventureCategory.categoryName"value="walking">//this return error "Element <ICollection>AdventureCategory does not contain a definition for adventureName"
Member
2 Points
10 Posts
Add objects to foregin table using Tag Helpers
Jun 09, 2020 06:48 PM|polunyt|LINK
I try add in one View element to two table Adventure and AdventureCategory. Tables are connected relation many-to-one
AdventureModel
AdventureCategoryModel
In View i have many checkbox where i can choose few AdventureCategory