Second value in dropdown list

Curious Cat 21 Reputation points
2022-11-01T11:29:20.07+00:00
<select class="form-select" asp-for="SpareParts.Item" asp-items="@(new SelectList(Model.Stocks,"ItemCode","ItemName"))">  
<option value="">select...</option>  
</select>  

As you can see above, there is ItemCode and ItemName between the bracelets in the SelectList. "ItemCode" as value and "ItemName" as display name.
My point is, how can I add there a second value next to "ItemCode" ?
I did try it with comma to seperate it but EF didn't allow me that.

With other words;
I need also the "ItemName" as value with the "Itemcode" together. I will split them at code-behind side.
Thank you in advance.

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,156 questions
{count} votes