• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

.NET Tiers

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    .NET Tiers

    I've been having a look at this lately (for .NET 2.0) and it does appear to be quite a time saver. Current ClientCo insists on using stored procedures for all data access but they would like to move towards an nTier architecture for future apps.

    Does anyone have any experience using this or have had any problems with it in a production environment? Or has any other recommendations for similar products that support generation of stored procedures for data access?

    #2
    it *does* produce a lot of code and there are those who would say that what it produces is practically bloatware. fine if you need/want it all i guess. there are a lot of other generators/templates out there. for example

    http://www.mygenerationsoftware.com/portal/default.aspx

    like all of these things, scratch around with the generated code and make sure you understand what it is claiming to do. almost all of them will still require you to open the bonnet and go in and hand code after generation.

    Comment


      #3
      there are loads of options - look at LLBLGen Pro, SubSonic (free) and Codesmith. if you don't like having loads of generated code around, look at NHibernate (my preferred option) and maybe Castle ActiveRecord. but for goodness sake don't hand code ADO.NET for run-of-the-mill apps: this is 2008! data access layers are a solved problem in this day and age, and writing them by hand is a colossal and bug-prone waste of your client's money. just pick an off-the-shelf tool, learn it, then deliver some business value.
      Originally posted by BolshieBastard
      You're fulfilling a business role not partaking in a rock and roll concert.

      Comment


        #4
        Look into Linq


        TM

        Comment


          #5
          Originally posted by themistry View Post
          Look into Linq
          TM
          LINQ is oldskool. Try looking at beta/new projects which build on linq e.q. ADO.NET Entities and Dynamic Data. Having said that, XLINQ is the best XML query tool I've used (far better and more maintainable than XPATH). If you have to use XPATH, grab the Firefox extension which lets you validate XPATH expressions.

          Comment


            #6
            Originally posted by eyetie View Post
            LINQ is oldskool. Try looking at beta/new projects which build on linq e.q. ADO.NET Entities and Dynamic Data. Having said that, XLINQ is the best XML query tool I've used (far better and more maintainable than XPATH). If you have to use XPATH, grab the Firefox extension which lets you validate XPATH expressions.
            Isn't it specifically LINQ to SQL that is being dropped?

            I think the OP was after a solution compatible with .NET 2.0 - does the Entity Framework support that?

            I've heard many reports panning the Entity Framework - what's your verdict on it?
            Where are we going? And what’s with this hand basket?

            Comment


              #7
              Originally posted by voodooflux View Post
              I've heard many reports panning the Entity Framework - what's your verdict on it?
              immature, overly complicated, no persistence ignorance, no implicit lazy-loading, universally loathed by anyone with real O/RM experience....need i go on? version 2 looks like it may be better though.

              if you get all your technical advice from microsoft's marketing department, use it. otherwise, use something tried and tested, that's my advice!
              Originally posted by BolshieBastard
              You're fulfilling a business role not partaking in a rock and roll concert.

              Comment


                #8
                Originally posted by lambrini_socialist View Post
                immature, overly complicated, no persistence ignorance, no implicit lazy-loading, universally loathed by anyone with real O/RM experience....need i go on? version 2 looks like it may be better though.

                if you get all your technical advice from microsoft's marketing department, use it. otherwise, use something tried and tested, that's my advice!
                That'll be another panning then. Cheers for the heads up on version 2.0 - that'll give me something to research while I wait for the ClientCo Christmas party to commence.
                Where are we going? And what’s with this hand basket?

                Comment


                  #9
                  ClientCo insists on stored procedures and MS only (and .NET 2.0), in fact some of the standards suggest that all projects should make use of MS Enterprise library. I've been told that we should be able to make use of code generation (from third party templates). Unfortunately, the SP/MS limitations here count out most of your suggestions lambrini.

                  For the previous project I produced some codesmith templates supporting a variety of features found in NHibernate (lazy loading, persistence ignorance, value objects and a variety of relationships) although these are not polished and I'd like to avoid going back to update these templates if at all possible. I find the whole process of creating templates painfully tedious considering all the manual testing involved.

                  Comment


                    #10
                    Originally posted by Jaws View Post
                    ClientCo insists on stored procedures and MS only


                    that's grim.
                    Originally posted by BolshieBastard
                    You're fulfilling a business role not partaking in a rock and roll concert.

                    Comment

                    Working...
                    X