Im using visual studio with ASP.NET Core web App (.NET 6.0).Im using Microsoft SQL Server Management Studio 19 as database. Currently, i ran a problem where it display the id instead of name in book index.
I have category table in the database and show it in drop box
But when I show product detail in the index, the category become ID of the category
here is my code: https://github.com/thorgia1702/FPTBook
I have tried make the category name become the FK key in the book table in the Migrations file but have not success
Copyright Notice:Content Author:「Trần Quang Khải」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/74895615/how-to-display-name-instead-of-id-in-asp-net-core