Attempting to create a CRUD API
Im coming from a spring boot background so Im not sure if im doing this correctly. I have a store entity which will have a store manager class to perform crud operations however Im not sure if this setup is correct
22 Replies
I've desgined a doc on how it should function
Im not actually sure how I will accept HTTP requests yet but first I'd want to make sure this is the proper way to do it
you shouldn't be writing repositories on top of EF Core DbContexts
actually you're not so nvm, but it seems like there is an excessive amount of layering
Im attempting to use encapsulation
Or really abstraction sorry
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Hmm I don’t get it
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
So which class should I edit
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Yeah 👍
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Right I’m already using it
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
In my DatabaseContext
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
I think I get it
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
I’ll revise it
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Nitpick, but
.ExecuteUpdate
for Update and .ExecuteDelete
for Delete. Buth can be done in a single query