Modify documents using Fluent API

Posted by Community Admin on 03-Aug-2018 14:07

Modify documents using Fluent API

All Replies

Posted by Community Admin on 01-Mar-2011 00:00

Hi

I want to modify the dynamic column value?

App.WorkWith()
       .Documents()
       .Where(d => d.Title == "PsDocument")
       .ForEach(i =>
       
           i.SetValue("PStatus", "True"); its not updating.
       )
       .SaveChanges();

please send me the syntax for this.

Thanks
Jmr

Posted by Community Admin on 02-Mar-2011 00:00

Hi Jmr,

I performed a test using the code below and the value gets saved correctly

App.WorkWith().Documents().ForEach(itm => itm.SetValue("test", "newvalue")).SaveChanges();

Regards,
Ivan Dimitrov
the Telerik team

This thread is closed