title: Read data on specific condition using Entity Framework
body: <p>Hello I am using Visual studio 2015 with Entity Framework 5.0.</p>
  
  <p>I have some data in table like following:</p>
  
  <p>1</p>
  
  <p>2</p>
  
  <p>3</p>
  
  <p>4</p>
  
  <p>5</p>
  
  <p>I want to read 1 and compare with 2,3,4,5
  again read same but this time read 2 and compare with 3,4,5
  now again read but this time read 3 and compare with 4,5
  now again read but this time read 4 and compare with 5.</p>
  
  <p>Is there any formula to read like read all data after 1 and again read data after 2 like 3,4,5 and read after data 3 read 4,5 and so on...</p>