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)
Fixed.