tiraten-bot/MvcEntityFrameWorks
An ASP.NET Core MVC web application built with Entity Framework Core for data access, following the Model-View-Controller architectural pattern and utilizing C# as the primary programming language.
Entity Framework MVC Projects Collection
This repository contains three different ASP.NET MVC projects that demonstrate various implementations and features using Entity Framework. Each project showcases different aspects of web development with .NET.
Projects Overview
1. EntityMVC
The first project in the series that demonstrates basic Entity Framework implementation with ASP.NET MVC. This project serves as a foundation for understanding the integration of Entity Framework in an MVC architecture.
2. EntityMVC2
A continuation of the first project with enhanced features and more advanced Entity Framework implementations. This project builds upon the basic concepts and introduces more complex database operations and relationships.
3. JwtAuthMVC (EntityMVC3)
The third project in the series focuses on implementing JWT (JSON Web Token) authentication in an ASP.NET MVC application with Entity Framework. This project demonstrates secure authentication and authorization practices.
Technologies Used
- ASP.NET MVC
- Entity Framework
- C#
- SQL Server
- JWT Authentication (in EntityMVC3)
- HTML/CSS
- JavaScript
Prerequisites
To run these projects, you'll need:
- Visual Studio 2019 or later
- .NET Framework 4.7.2 or later
- SQL Server (LocalDB or higher)
- Basic understanding of C# and MVC architecture
Getting Started
- Clone the repository
- Open each solution file in Visual Studio
- Restore NuGet packages
- Update the connection strings in
Web.configfiles if necessary - Run the Entity Framework migrations
- Build and run the projects
Project Structure
Each project follows the standard MVC architecture:
- Models: Data models and Entity Framework context
- Views: User interface templates
- Controllers: Application logic and routing
- Data: Entity Framework migrations and configurations
Features
EntityMVC
- Basic CRUD operations
- Entity Framework Code First approach
- Simple data models and relationships
EntityMVC2
- Advanced CRUD operations
- Complex data relationships
- Improved user interface
- Enhanced data validation
JwtAuthMVC (EntityMVC3)
- JWT-based authentication
- Secure API endpoints
- User management
- Role-based authorization
- Protected routes and resources
Contributing
Feel free to fork this repository and submit pull requests. You can also open issues for any bugs or feature requests.
License
This project is licensed under the MIT License - see the LICENSE file for details.