title: Using JayData with dynamic init
body: <p>i am new with JayData, i have an OData service which i want to consume with JayData
  i have this function</p>
  
  <pre><code>$data.initService('/odata')
              .then(function (context) {
                  // manage your data through context with JSLQ
  
                  context.Store.forEach(function (s) {
                      alert(s.Name);
                      })
  
              });
  </code></pre>
  
  <p>but the i never get to the foreach
  my model is </p>
  
  <pre><code>public class Product
  {
      public int ID { get; set; }
      public string Name { get; set; }
  }
  
  public class Store
  {
      public int ID { get; set; }
      public string Name { get; set; }
  
      public List&lt;Product&gt; Products { get; set; }
  }
  </code></pre>
  
  <p>i have changed to use JaySvcUtil - and generated entity model, how ever i got strange request, when it goes to the server i get error 500 cause it use text/plain</p>
  
  <pre><code> var oProviderConfig = {
                  name: 'oData',
                  oDataServiceHost: 'http://localhost:16894/odata'
              };
  
              var c = new $data.generatedContexts[0](oProviderConfig);
              c.onReady(function () {
                  c._Store.forEach(function (s) {
                      alert(s.Name);
                  });
              });
  </code></pre>
  
  <p>GET
  500
  Internal Server Error
  text/plain
  datajs-1.1.0.js:2484
  Script
  358 B
  0 B</p>