Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Is my MVC application 1-Tier or 2-Tier?

  • 12-07-2012 11:11am
    #1
    Registered Users, Registered Users 2 Posts: 7,849 ✭✭✭


    I have created a simple ASP.NET MVC 3 application that interacts with an Oracle Database. All of the SQL queries are hard coded into the relevant action methods of the Controller class in the MVC. I had initally assumed that this was a 2-Tier system but now I'm not so sure since I don't have a separate data access Tier.


Comments

  • Registered Users, Registered Users 2 Posts: 7,157 ✭✭✭srsly78


    Just call it N-tier and you're golden.


  • Registered Users, Registered Users 2 Posts: 11,998 ✭✭✭✭Giblet


    1 Tier. Your controllers should be as light as possible, 1 or 2 lines in most cases. You need to encapsulate your dataaccess in a library or else you will need to rewrite controllers every time you need a db change.


Advertisement