I use database-first approach in ASP.NET Core MVC. Now my website can show the table from my database, also it has Create.cshtml, Delete.cshtml, Details.cshtml, and Edit.cshtml pages.
I want to add a function to allow the user to select any .CSV file on the computer, then read and convert it and update the data in the database, but I have no idea how to do this.
I have seen two way from https://www.postgresqltutorial.com/import-csv-file-into-posgresql-table/
but I think it can't meet my needs. Does anyone have any idea?