In this code, there is a red squiggly lines under IndexQuery, PatchRequest, and PatchCommandType, indicating that the proper namespace is not imported. What namespace do I need to import?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Raven.Client.Document;
...
documentStore.DatabaseCommands.UpdateByIndex("DataByColor",
new IndexQuery
{
Query = "Color:red"
}, new[]
{
new PatchReques
{
Type = PatchCommandType.Set,
Name = "Color",
Value = "Green"
}
},
allowStale: false);
Is the solution.