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

C++: Boost interprocess memory mapped file error -

python - IO.UnsupportedOperation: Not Writable -

python - malformed header from script index.py Bad header -