Skip to content

Maurizio8788/ArticleAdoDotNetAndEFCore

Repository files navigation

EF Core TodoList Application

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.

Getting Started

Prerequisites

Before you start, make sure you have the following installed:

  • .NET Core SDK
  • Visual Studio or your preferred code editor
  • SQLite for database development

Installation

  1. Clone this repository to your local machine.
  2. Open the solution in Visual Studio or your code editor of choice.
  3. Build the solution to restore dependencies.

Usage

  1. Set up your database connection in the appsettings.json file.
  2. Create the database schema using EF Core migrations:
    dotnet ef database update
  3. Run the application to start managing your TodoList.

Key Concepts Covered

  • 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

Contributing

If you'd like to contribute to this project, please follow these guidelines:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes.
  4. Test your changes thoroughly.
  5. Create a pull request with a clear description of your changes.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages