Search code examples
asp.net-mvcentity-frameworknosqlasp.net-mvc-scaffolding

asp.net dynamic data scaffold using a NoSQL DB


Is there any way to use ASP.NET Dynamic Data WebApp or Scaffold using a NoSQL DB (CouchDB) I have a Class library of Objects - marked as a ContextModel.

I think i have to generate an EDMX file from my object Model - but I'm not sure how.

Thanks


Solution

  • I think what you want is to create a custom scaffolding. Steven Sanderson has a great series on MvcScaffolding and one of the articles is devoted to this topic. So you would do something like

    > scaffold CustomScaffolder CouchRepository
    

    if you want to set this as the default repository:

    > Set-DefaultScaffolder Repository CouchRepository
    

    You wouldn't need to generate an EDMX, as you don't need EntityFramework.
    Just be sure to use the "-Repository" switch when you scaffold the controllers. See this article