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

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

Options
  • 12-07-2012 12:11pm
    #1
    Registered Users Posts: 7,110 ✭✭✭


    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 Posts: 7,157 ✭✭✭srsly78


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


  • Registered Users Posts: 11,979 ✭✭✭✭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