1
Answer

How to use Dynamic Set Property

Katie

Katie

Jun 19
414
1

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)