title: Dynamic data model "Visible Tables" count always Zero
body: <p>I have added a new system(DB) to the existing dynamic data application. I have registered routes in global.asax . I have given scaffoldalltables to true.</p>
  <p>But in table navigation while giving DataSource to gridview, Visibletables count is always zero. eventhough tables count is 4.</p>
  <h1>region Test Configuration</h1>
  <pre><code>        TestModel.RegisterContext(typeof(TestModel.CompassionEntities), new ContextConfiguration { ScaffoldAllTables = true });
          TestModel.FieldTemplateFactory = new AdvancedFieldTemplateFactory();
          routes.Add(new DynamicDataRoute(&quot;Test.{table}/ListDetails.aspx&quot;)
          {
              Action = PageAction.List,
              RouteHandler = new AdvancedDynamicDataRouteHandler(),
              ViewName = &quot;ListDetails&quot;,
              Model = TestModel
          });
          routes.Add(new DynamicDataRoute(&quot;Test.{table}/ListDetails.aspx&quot;)
          {
              Action = PageAction.Details,
              RouteHandler = new AdvancedDynamicDataRouteHandler(),
              ViewName = &quot;ListDetails&quot;,
              Model = TestModel
          });
  </code></pre>
  <h1>endregion</h1>
  <p>tablenavigation.cs</p>
  <p>TestGridView.DataSource = Global.TestModel.VisibleTables;
  TestGridView.DataBind();</p>
  <p>Please assist</p>