title: Generating routes dynamically in routeconfig from database
body: <p>I have some routes store in my database tables like below :</p>
  
  <pre><code>/Customer/{Customer}/Address
  /Customer/{Customer}/Address/{Address}
  </code></pre>
  
  <p>Above are just examples as i can have more routes also.</p>
  
  <p>Now i want to generate routes dynamically in <strong>routeconfig</strong> by fetching from database in below routeconfig:</p>
  
  <pre><code>public class RouteConfig
      {
          public static void RegisterRoutes(RouteCollection routes)
          {
              routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
              //I am thinking to generate my routes dyncamically here.
              routes.MapRoute(
                  name: "Default",
                  url: "{controller}/{action}/{id}",
                  defaults: new { controller = "Account", action = "Login", id = UrlParameter.Optional }
              );
          }
      }
  </code></pre>
  
  <p>So my question is how feasible this solution will be and if it is feasible then can we do same thing in wcf??</p>