botcute
botcute
CC#
Created by botcute on 7/26/2024 in #help
Cascading delete from child to parent
I have an entity like this: public class A{ public Guid Id; public Guid Bid; } public class B{ public Guid Id; } How can I make so that B get deleted when A get deleted
6 replies
CC#
Created by botcute on 7/15/2024 in #help
How to handle updating a list of children entity
I have a list of children entity. If I were to update the list with new entity mix with some old entity. Will efcore deletes all of the entity that doesn't exist in the new list/ add new entities/ update the old entity
2 replies
CC#
Created by botcute on 5/19/2024 in #help
Help with image upload
I have an endpoint where user can upload many images (1-10). I used cloudinary for uploading the file and then store the url in sql table. User can later on change the image via a read endpoint, where I check which Images are new and upload them to cloudinary then replace the url and delete the old images. I feel like this is not the most optimal approach. Does anyone know a better way to handle upload and change image
3 replies