asp.net mvc - MVC Data access logic -


i know many people have asked question still don't have clear understanding should data access layer in mvc project. here do:

  • i have web application , data access layer in separate projects
  • in data access project have 1 class (which have named "db") processes requests database
  • and when need example list books call db.getallbooks(); controller

is practice or should have separate class books operations, user operations etc in data access layer?


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -