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. The Lounge
  3. nHibernate still better than EF

nHibernate still better than EF

Scheduled Pinned Locked Moved The Lounge
question
11 Posts 7 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.
  • T Offline
    T Offline
    Tim Schwallie
    wrote on last edited by
    #1

    All these years and revisions later, does nHibernate still offer more?

    M L S P F 5 Replies Last reply
    0
    • T Tim Schwallie

      All these years and revisions later, does nHibernate still offer more?

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #2

      Tim Schwallie wrote:

      All these years and revisions later, does nHibernate still offer more?

      I wouldn't know, I don't use either. ;)

      Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

      1 Reply Last reply
      0
      • T Tim Schwallie

        All these years and revisions later, does nHibernate still offer more?

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

        More what?

        T 1 Reply Last reply
        0
        • L Lost User

          More what?

          T Offline
          T Offline
          Tim Schwallie
          wrote on last edited by
          #4

          I guess recently I miss SessionLess or whatever it was called in nHibernate. I know there's ways to set that up in EF, just a few extra steps. I miss being able to choose the concurrency strategy, ie use this DateTime field, increment this integer field, use sql server TimeStamp, and so on.

          V 1 Reply Last reply
          0
          • T Tim Schwallie

            All these years and revisions later, does nHibernate still offer more?

            S Offline
            S Offline
            Slacker007
            wrote on last edited by
            #5

            I have never used nH. However, the latest version EF is just fine, and I have not needed to go elsewhere.

            T 1 Reply Last reply
            0
            • T Tim Schwallie

              I guess recently I miss SessionLess or whatever it was called in nHibernate. I know there's ways to set that up in EF, just a few extra steps. I miss being able to choose the concurrency strategy, ie use this DateTime field, increment this integer field, use sql server TimeStamp, and so on.

              V Offline
              V Offline
              Vark111
              wrote on last edited by
              #6

              I don't do much .net development any more these days, but back when I did, I always preferred NH because I had to support legacy databases. I could map a boolean in my model to a char(1) in the database without having to muck up the model code with mapping information. At the time, EF (5? I think it was?) didn't have that capability yet. Don't know if it has it yet or not.

              1 Reply Last reply
              0
              • T Tim Schwallie

                All these years and revisions later, does nHibernate still offer more?

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #7

                Who cares? Avoid both/all.

                1 Reply Last reply
                0
                • T Tim Schwallie

                  All these years and revisions later, does nHibernate still offer more?

                  F Offline
                  F Offline
                  F ES Sitecore
                  wrote on last edited by
                  #8

                  The problem with NH is the same with many of these frameworks is the lack of documentation and trying to work out how to do things is a frustrating trawl through 7 year old SO threads giving solutions that no longer work with your version. All though this evidently EF's downfall too given this thread. I think people think you just drag things onto a designer with EF and that's all it can do. EF is capable of much more than people think, including custom mapping, having an entity represent data from multiple tables, reusable complex types and all sorts but you really need to get a book on it to appreciate everything it can do.

                  S T 2 Replies Last reply
                  0
                  • F F ES Sitecore

                    The problem with NH is the same with many of these frameworks is the lack of documentation and trying to work out how to do things is a frustrating trawl through 7 year old SO threads giving solutions that no longer work with your version. All though this evidently EF's downfall too given this thread. I think people think you just drag things onto a designer with EF and that's all it can do. EF is capable of much more than people think, including custom mapping, having an entity represent data from multiple tables, reusable complex types and all sorts but you really need to get a book on it to appreciate everything it can do.

                    S Offline
                    S Offline
                    Slacker007
                    wrote on last edited by
                    #9

                    There are A LOT of old farts on this site that still take the horse and buggy to work.

                    1 Reply Last reply
                    0
                    • F F ES Sitecore

                      The problem with NH is the same with many of these frameworks is the lack of documentation and trying to work out how to do things is a frustrating trawl through 7 year old SO threads giving solutions that no longer work with your version. All though this evidently EF's downfall too given this thread. I think people think you just drag things onto a designer with EF and that's all it can do. EF is capable of much more than people think, including custom mapping, having an entity represent data from multiple tables, reusable complex types and all sorts but you really need to get a book on it to appreciate everything it can do.

                      T Offline
                      T Offline
                      Tim Schwallie
                      wrote on last edited by
                      #10

                      Yes, that is kind of how the industry works. Only enough documentation to keep the EU off your back. Write books/online videos/articles/etc to fill in the blanks. Show me the $$$$.

                      1 Reply Last reply
                      0
                      • S Slacker007

                        I have never used nH. However, the latest version EF is just fine, and I have not needed to go elsewhere.

                        T Offline
                        T Offline
                        Tim Schwallie
                        wrote on last edited by
                        #11

                        Best I can say is take a look at NH or it's parent Hibernate. It'll give you an idea where a lot of the EF functionality came from.

                        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