This repository contains a simple TodoList application built using Entity Framework Core (EF Core). In this application, we explore the fundamental concepts of setting up and using EF Core to interact with a database.
Before you start, make sure you have the following installed:
- .NET Core SDK
- Visual Studio or your preferred code editor
- SQLite for database development
- Clone this repository to your local machine.
- Open the solution in Visual Studio or your code editor of choice.
- Build the solution to restore dependencies.
- Set up your database connection in the
appsettings.json
file. - Create the database schema using EF Core migrations:
dotnet ef database update
- Run the application to start managing your TodoList.
- Database First and Code First approaches
- Fluent Mapping of Entity Classes
- Performing CRUD operations with EF Core
- Using Data Annotations for configuration
- Handling Relationships in EF Core
- Seeding Data into the Database
- Performing Queries with LINQ
- Updating and Deleting Entities
- Cascading Deletes
If you'd like to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes.
- Test your changes thoroughly.
- Create a pull request with a clear description of your changes.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Thanks to the authors of the EF Core documentation for providing excellent resources.
Feel free to explore the code and use it as a starting point for your own EF Core projects. Enjoy working with EF Core!
Happy coding!
Please make any necessary adjustments for your repository's specific details or requirements.