Confused on how to structure my API with Entity Framework

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • 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

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • CleanArchitecture

    Clean Architecture Solution Template: A starting point for Clean Architecture with ASP.NET Core (by ardalis)

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