Update/patch command #595
Unanswered
wahidrezgui
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hy ,
would you please help me regarding an update issue
I want to update only the fields passed to the JSON command file
I have a class with many properties if the end-user update only some of them,
my question is how to update only the fields in the query?
Sample :
public async Task Handle(UpdateCommand request, CancellationToken cancellationToken)
{
var entity = await _context.Proprietes
.FindAsync(new object[] { request.Id }, cancellationToken);
is there another clean way to do it , THANKS
Beta Was this translation helpful? Give feedback.
All reactions