ASP.NET Core MVC CRUD Application
This is a simple ASP.NET Core MVC CRUD application that allows users to Create, Read, Update, and Delete (CRUD) products. The application follows the MVC architecture and uses Entity Framework Core for database interactions.
View a list of products
Add a new product
Edit product details
Delete a product
Uses Entity Framework Core for database operations
Follows ASP.NET Core MVC architecture
ASP.NET Core 6+
Entity Framework Core
C#
SQL Server
Bootstrap (for UI design)
📂 Project Structure
/Net-CoreProjects ├── Controllers/ # Contains MVC controllers │ ├── ProductController.cs │ ├── Models/ # Contains database models │ ├── Product.cs │ ├── Data/ # Database context │ ├── DataContext.cs │ ├── Views/ # Razor views for UI │ ├── Product/ │ │ ├── Index.cshtml │ │ ├── Create.cshtml │ │ ├── Edit.cshtml │ │ ├── Delete.cshtml │ ├── appsettings.json # Configuration file ├── Program.cs # Entry point of the application ├── Startup.cs # Middleware and routing setup
1️⃣ Clone the Repository
git clone https://github.com/yourusername/Net-CoreProjects.git cd Net-CoreProjects
2️⃣ Install Dependencies
Ensure .NET SDK is installed. Then run:
dotnet restore
3️⃣ Configure Database
Modify appsettings.json with your SQL Server connection string:
"ConnectionStrings": { "DefaultConnection": "Server=YOUR_SERVER;Database=MvcCoreDb;Trusted_Connection=True;" }
4️⃣ Apply Database Migrations
dotnet ef migrations add InitialCreate dotnet ef database update
5️⃣ Run the Application
dotnet run
Open http://localhost:5000/Product in your browser.
✅ Implement authentication & authorization using JWT
✅ Deploy the application on Azure/AWS
✅ Add more features like search & filters
This project is licensed under the MIT License.