Our great sponsors
-
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.
-
CleanArchitecture
Clean Architecture Solution Template: A starting point for Clean Architecture with ASP.NET Core (by ardalis)
-
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.
I've got a starter project on github which was built this way. Feel free to take a look: https://github.com/davetoland/TicketingSystem
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
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
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.
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