Skip to content

This ASP.NET Core MVC application is a CRUD system for managing products. It follows the MVC architecture and uses Entity Framework Core for database operations. Designed for learning and development, it provides a structured, scalable, and interactive platform to demonstrate efficient web application development with .NET Core.

Notifications You must be signed in to change notification settings

Neeraj102001/.Net-CoreProjects

Repository files navigation

ASP.NET Core MVC CRUD Application

Overview

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.

Features

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

Technologies Used

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

Setup & Installation

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.

Next Steps

✅ Implement authentication & authorization using JWT

✅ Deploy the application on Azure/AWS

✅ Add more features like search & filters

License

This project is licensed under the MIT License.

About

This ASP.NET Core MVC application is a CRUD system for managing products. It follows the MVC architecture and uses Entity Framework Core for database operations. Designed for learning and development, it provides a structured, scalable, and interactive platform to demonstrate efficient web application development with .NET Core.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published