title: Unicode with Entity Framework
body: <p>I have a table with nvarchar field (MS SQL Server 2008 R2). For testing, this code works fine:</p>
  
  <pre><code>Update [Screenshots] set name=N'Значение' where id=230246
  </code></pre>
  
  <p>right now I created Entity Framework model, I have set Unicode as True</p>
  
  <p><img src="https://i.stack.imgur.com/lq6rL.jpg" alt="enter image description here"></p>
  
  <p>then I try to update my record:</p>
  
  <pre><code>    public void Put(FormDataCollection formData)
      {
          string filename = formData.Get("filename");
          var screenshot = c.Screenshots.Where(p =&gt; p.filename == filename).FirstOrDefault();
          if (screenshot != null)
          {
              screenshot.name = formData.Get("description");
              c.SaveChanges();
          }
      }
  </code></pre>
  
  <p>but I got "?????" instead of unicode value. How to do it? I know about AsNonUnicode method, but this method works only for LINQ.</p>