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. Design and Architecture
  4. LINQ

LINQ

Scheduled Pinned Locked Moved Design and Architecture
questioncsharplinqdesignbusiness
8 Posts 3 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.
  • B Offline
    B Offline
    Bassam Saoud
    wrote on last edited by
    #1

    Would you consider LINQ as a Data access layer or business layer or all 2 of them? I mean how would you incorporate LINQ to the three layer design? I have done a research on this question and would like to know what you think.

    M P 2 Replies Last reply
    0
    • B Bassam Saoud

      Would you consider LINQ as a Data access layer or business layer or all 2 of them? I mean how would you incorporate LINQ to the three layer design? I have done a research on this question and would like to know what you think.

      M Offline
      M Offline
      Mark Churchill
      wrote on last edited by
      #2

      LINQ is a query syntax. Its not a layer.

      Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
      Alpha release: Entanglar: Transparant multiplayer framework for .Net games.

      1 Reply Last reply
      0
      • B Bassam Saoud

        Would you consider LINQ as a Data access layer or business layer or all 2 of them? I mean how would you incorporate LINQ to the three layer design? I have done a research on this question and would like to know what you think.

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        Bassam Saoud wrote:

        I mean how would you incorporate LINQ to the three layer design?

        Very, very carefully. Really, to do this, you need to disconnect the data context, otherwise the temptation is there for you to retrieve data in completely the wrong places.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles

        B 1 Reply Last reply
        0
        • P Pete OHanlon

          Bassam Saoud wrote:

          I mean how would you incorporate LINQ to the three layer design?

          Very, very carefully. Really, to do this, you need to disconnect the data context, otherwise the temptation is there for you to retrieve data in completely the wrong places.

          Deja View - the feeling that you've seen this post before.

          My blog | My articles

          B Offline
          B Offline
          Bassam Saoud
          wrote on last edited by
          #4

          Would you recommend I do that? I mean, from an architecture point of view, would you consider using LINQ in your project(s) vs the clean 3 layer architecture and traditional ADO.NET? sorry for not replying to your post earier, When you posted , I just voted it

          P 1 Reply Last reply
          0
          • B Bassam Saoud

            Would you recommend I do that? I mean, from an architecture point of view, would you consider using LINQ in your project(s) vs the clean 3 layer architecture and traditional ADO.NET? sorry for not replying to your post earier, When you posted , I just voted it

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            Bassam Saoud wrote:

            sorry for not replying to your post earier, When you posted , I just voted it

            Don't worry about it.

            Bassam Saoud wrote:

            I mean, from an architecture point of view, would you consider using LINQ in your project(s) vs the clean 3 layer architecture and traditional ADO.NET?

            Well, we wrote a lot of do just this, and the more time goes by, the less happy I am with it. It's just such a bloody mess - and there's a lot of unnecessary wrangling going on. I must admit that I am looking at us moving actively back to ActiveRecord - or possibly EF. We will still continue to use L4O though.

            Deja View - the feeling that you've seen this post before.

            My blog | My articles

            B 1 Reply Last reply
            0
            • P Pete OHanlon

              Bassam Saoud wrote:

              sorry for not replying to your post earier, When you posted , I just voted it

              Don't worry about it.

              Bassam Saoud wrote:

              I mean, from an architecture point of view, would you consider using LINQ in your project(s) vs the clean 3 layer architecture and traditional ADO.NET?

              Well, we wrote a lot of do just this, and the more time goes by, the less happy I am with it. It's just such a bloody mess - and there's a lot of unnecessary wrangling going on. I must admit that I am looking at us moving actively back to ActiveRecord - or possibly EF. We will still continue to use L4O though.

              Deja View - the feeling that you've seen this post before.

              My blog | My articles

              B Offline
              B Offline
              Bassam Saoud
              wrote on last edited by
              #6

              Pete O'Hanlon wrote:

              Well, we wrote a lot of do just this, and the more time goes by, the less happy I am with it. It's just such a bloody mess

              Yeah, I totally agree, Its a mess. I have read some good articles though like this MSDN Article[^], but still I dont like. I hope you would write an article about your experience :-O

              P 1 Reply Last reply
              0
              • B Bassam Saoud

                Pete O'Hanlon wrote:

                Well, we wrote a lot of do just this, and the more time goes by, the less happy I am with it. It's just such a bloody mess

                Yeah, I totally agree, Its a mess. I have read some good articles though like this MSDN Article[^], but still I dont like. I hope you would write an article about your experience :-O

                P Offline
                P Offline
                Pete OHanlon
                wrote on last edited by
                #7

                I was going to give away the data layer that we wrote, but frankly it's becoming a bit embarrassing.

                Deja View - the feeling that you've seen this post before.

                My blog | My articles

                B 1 Reply Last reply
                0
                • P Pete OHanlon

                  I was going to give away the data layer that we wrote, but frankly it's becoming a bit embarrassing.

                  Deja View - the feeling that you've seen this post before.

                  My blog | My articles

                  B Offline
                  B Offline
                  Bassam Saoud
                  wrote on last edited by
                  #8

                  Well I would love to see an article Why not to use Linq or This is is how to use Linq in a three tier layer. I am sure many will be intersted in your experience :-O

                  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