Confused on how to structure my API with Entity Framework

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/dotnet

Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Scout APM - Less time debugging, more time building
  • SaaSHub - Software Alternatives and Reviews
  • TicketingSystem

    I've got a starter project on github which was built this way. Feel free to take a look: https://github.com/davetoland/TicketingSystem

  • realworlddotnet

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • CleanArchitecture

    Clean Architecture Solution Template: A starting point for Clean Architecture with ASP.NET Core

    Overall i now use a DDD style approach with Mediatr based on https://github.com/ardalis/CleanArchitecture/tree/main/src as well as snippets from Microsofts https://github.com/dotnet-architecture/eShopOnWeb

  • eShopOnWeb

    Sample ASP.NET Core 6.0 reference application, powered by Microsoft, demonstrating a layered application architecture with monolithic deployment model. Download the eBook PDF from docs folder.

    Overall i now use a DDD style approach with Mediatr based on https://github.com/ardalis/CleanArchitecture/tree/main/src as well as snippets from Microsofts https://github.com/dotnet-architecture/eShopOnWeb

  • Specification

    Base class with tests for adding specifications to a DDD model

    This is honestly such an amazing way to make sure you have a clear view of what your Linq does, see https://github.com/ardalis/Specification - note that the examples on the front git page uses a repository, but he later allowed the use directly on DbSet which finally made it possible for me to use the library.

  • examQuestionCore

    Randomly distribute exam questions - server component written in C#/.NET5

    Have a look at what I've done here: https://github.com/rtbsoft/examQuestionCore . I'm all for the right level of complexity and accessing dbContext in the controller is just fine. I've worked on a project with a DTO layer and an Repository layer and interfaces everywhere and it just ended up that every change required touching multiple files and running automated tools (which sometimes failed on the build server) -- with almost no gain in security or any other metric I could think of. KISS

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts