title: How to get a byte array length using LINQ to Entities?
body: <p>I have a Document class that stores the data of that document as a byte array.
  I need to check the size of the array, using LINQ to Entities.</p>
  
  <p>I have tried the following: </p>
  
  <pre><code>[long Linq query here...] o.Data.Length &lt; 800000)
  </code></pre>
  
  <p>The problem is I get the following exception:</p>
  
  <blockquote>
    <p>The LINQ expression node type 'ArrayLength' is not supported in LINQ to Entities."</p>
  </blockquote>
  
  <p>Is there any other way to check the size of the byte array?</p>