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++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -