❔ Updating EF entity with object containing optional properties
I'm writing an API endpoint where you can pass in any number of parameters for an EF core entity. I then want to merge the given parameters/object into the entity to update only those fields.
I'm new to C# and having issues getting this to work. I ended up trying AutoMapper but it is updating all the given fields and setting the rest to null.
I'm new to C# and having issues getting this to work. I ended up trying AutoMapper but it is updating all the given fields and setting the rest to null.