DEV Community

Bruce Axtens
Bruce Axtens

Posted on

How do I update a column in a System.Data datarow using V8 under ClearScript?

0

I'm using the V8ScriptEngine

v8 = new V8ScriptEngine(V8ScriptEngineFlags.DisableGlobalMembers);

and have exposed the "System.Data" namespace into the ClearScript environment.

var htc = new HostTypeCollection();
foreach (var assembly in new string[] { "mscorlib", "System", "System.Core", "System.Data" })
{
    htc.AddAssembly(assembly);
}
...
v8.AddHostObject("CS", htc);

Then I've taken a System.Data example from Microsoft and…

Top comments (1)

Collapse
 
bugmagnet profile image
Bruce Axtens

Fixed.