I suggest you ...

Enable ASP.Net scaffolding to generate CRUD data based on another class rather than only EF DbContext

Today ASP.Net project scaffolding only allow you to select a entity model class + Entity Framework DbContext-based class in order to generate the operations on view and controller.

We have a class that we call "Business Layer" that holds the instance of the DbContext EF code-first class. This layer contains all necessary business logic for that specific business domain, including CRUD and validations. We would like to be able to generate scaffold based on this class instead of rather have to point directly to DbContext.

Maybe if ASP.Net MVC has an Interface which basic CRUD operations, it would be able to generate the CRUD views and controller methods based on it.

Thanks!

16 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Gutemberg Ribeiro shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base