.Net Core MVC Session: how to upload images to SQLite database and list on Index

Опубликовано: 30 Сентябрь 2024
на канале: The Solution Architect
1,054
11

The video content demonstrates how to add images on a cshtml view using a ASP.Net Core 2.2 MVC Web Application. Using C# and Visual Studio Code.


This vide shows the following steps:
1) Add Image path column to the table
2) Add new column to the Model
3) Update Database using Migrations
4) Create path on wwwroot
5) Add FileProvider and file path to Startup
6) Add Upload code to the Create method
7) Add the file type to the Create View
8) Add the Image Path to view on Index List



Please support me on Patreon:   / thesolutionarchitect  

Code checked into GitHub: https://github.com/charlesbill/TheSol...

Please view the MVC series if you want to know how to create an .Net CoreMV web App and add a SQLite database:
MVC Part 1 (Create MVC .net core web app):    • MVC Part 1: Create a ASP.Net Core MVC...  
MVC Part 2 (Add Identity for user logins):    • MVC Part 2: Create ASP.Net Core MVC W...  
MVC Part 3 (Add SQLite with EntityFrameworkCore) :    • MVC Part 3: Using SQLite with Entity ...  
MVC Part 4 (Add Roled-based security):    • MVC Part 4: Adding Roled-Based Securi...