Preventing service registration overwrite?


I added custom action to a controller and everytime I rescaffold the DB it tries to delete it.
I was trying to think if there was a way to use partial or something to prevent this??
Is there a trick to prevent it?
If not it's not a big deal I just discard changes in git

Hi @Patrick_Gueriguian,

Unfortunately there isn't a trick to prevent this code from being generated. Radzen Blazor Studio takes the whole block (ending with opt.AddRouteComponents).