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. Web Development
  3. ASP.NET
  4. What layers required for make asp.net core 2 project for prevent repeat data ?

What layers required for make asp.net core 2 project for prevent repeat data ?

Scheduled Pinned Locked Moved ASP.NET
asp-netcsharpdotnethelpquestion
4 Posts 4 Posters 2 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.
  • A Offline
    A Offline
    ahmed_sa
    wrote on last edited by
    #1

    Problem What layers required for make asp.net core 2 project for prevent repeat data ? I need to make new project with asp.net core 2.1 using Generics and i have more questions How many layers used ? which layer must have initialize of connections ?

    L V J 3 Replies Last reply
    0
    • A ahmed_sa

      Problem What layers required for make asp.net core 2 project for prevent repeat data ? I need to make new project with asp.net core 2.1 using Generics and i have more questions How many layers used ? which layer must have initialize of connections ?

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

      See Introduction to ASP.NET Core | Microsoft Docs[^].

      1 Reply Last reply
      0
      • A ahmed_sa

        Problem What layers required for make asp.net core 2 project for prevent repeat data ? I need to make new project with asp.net core 2.1 using Generics and i have more questions How many layers used ? which layer must have initialize of connections ?

        V Offline
        V Offline
        Vincent Maverick Durano
        wrote on last edited by
        #3

        Anything related to data and database connection should be placed inside your Data Access layer. Anything related to Business rules and validation should be placed inside your Business Layer or whatever you want to call it.

        1 Reply Last reply
        0
        • A ahmed_sa

          Problem What layers required for make asp.net core 2 project for prevent repeat data ? I need to make new project with asp.net core 2.1 using Generics and i have more questions How many layers used ? which layer must have initialize of connections ?

          J Offline
          J Offline
          James Walsh Jr
          wrote on last edited by
          #4

          In most of our web services I use the repository pattern. Isolating data access from business rules from controller/services. Here is a link to some docs on Microsoft. This isn't specific to Dotnet Core, but the same pattern can still be applied.

          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