Katie

Katie

  • 1.5k
  • 231
  • 1.8k

How to use Dynamic Set Property

Jun 19 2024 12:11 PM

Hello,

I wish to update a particular field in DB by passing the field name and value. How can I make below work ?

await _context.<contextname>.Where(s=>s.Id == request.reportfield.Id).ExecuteUpdateAsync(b =>b.SetProperty(request.reportfield.Name,request.reportfield.Value));


Answers (1)