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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

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