title: Has anyone had success with .NET RIA DomainDataService and POCO?
body: <p>I have this working and getting data. However, everytime I page it calls the GetAllWebExceptions, which gets all of the web exceptions records from the database. How should paging be implemented? I've only seen examples with EntityFrameworks. Does anyone have a good example using the data source with POCO or is that still to come?</p>
  
  <pre><code> &lt;Grid x:Name="LayoutRoot" Background="White"&gt;
          &lt;ria:DomainDataSource x:Name="ErrorLogDataSource" 
                                LoadMethodName="GetAllWebExceptions"&gt;
              &lt;ria:DomainDataSource.DomainContext&gt;
                  &lt;services:CMSContext /&gt;
              &lt;/ria:DomainDataSource.DomainContext&gt;
          &lt;/ria:DomainDataSource&gt;
          &lt;data:DataGrid x:Name="DataGridExceptions" ItemsSource="{Binding ElementName=ErrorLogDataSource, Path=Data}" 
                         AutoGenerateColumns="True"&gt;
          &lt;/data:DataGrid&gt;
          &lt;dataControls:DataPager Source="{Binding Data, ElementName=ErrorLogDataSource}" 
                                  PageSize="20" /&gt;
  </code></pre>
  
  <p>in the service:<br /></p>
  
  <pre>
  [Query(PreserveName = true)]
  public IEnumerable GetAllWebExceptions()
  {
     return WebException.SelectAll("DATECREATED DESC");
  }
  </pre>