Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. N-Tier best practices when using in MVC application

N-Tier best practices when using in MVC application

Scheduled Pinned Locked Moved C#
architectureasp-netdatabasejsontutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 9445141
    wrote on last edited by
    #1

    Hello! I am just curious if it would be good practice to have all of my layers in the same project, or should I create a separate project(Web API) as my data layer, for example, and call it from my MVC application. I feel I can still create the separate layers in the same project but just use a controller as the middle layer to call a Web API that would handle the database inquiries, then report back to the controller for the View the user is interacting with. Does this sound like good practices for sticking with n-tier architecture? Thank you!

    L 1 Reply Last reply
    0
    • U User 9445141

      Hello! I am just curious if it would be good practice to have all of my layers in the same project, or should I create a separate project(Web API) as my data layer, for example, and call it from my MVC application. I feel I can still create the separate layers in the same project but just use a controller as the middle layer to call a Web API that would handle the database inquiries, then report back to the controller for the View the user is interacting with. Does this sound like good practices for sticking with n-tier architecture? Thank you!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I think you mean multiple projects in one solution. A project is (usually) an exe or dll (or both). The data layer is usually a dll. Easier (for one person) to work with multiple projects under development when they're in one solution.

      It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups