2009/10/22 aemami <[email protected]>: > > The only reason I posted this is, I love using NHibernate - setting up > mappings via Fluent NHibernate, your support for more complex > inheritance such as table-per-subclass, these are all things I really > like about NHibernate. > > I do not like the ICriteria api however. That is NHibernate specific > technology.
So what you're saying is that anything not blessed by Microsoft as a language extension is "xx specific technology" and by definition should be avoided? I believe Fabio's point may have been that NHibernate has existed much longer than LINQ has. It is thus no strange thing that LINQtoNHibernate is not so mature as some of the other query interfaces, which have existed for much longer. > I can't abstract that away via an interface, its not > possible. Which means I can no longer swap out my ORM if problems > arise. Nonsense! Hide your use of NHibernate's API in repository or query object implementations, that implement domain model specific interfaces. Then you can use whichever of NHibernate's seven query APIs that is best for a particular method. This way the implications, should you decide to switch ORM, is limited to a specific part of your code base. > > And finally, when the performance of a query is slower by a factor of > 5 times compared to a competing ORM, I can't justify using it anymore. I don't know how you've measured this or what you are comparing with, but probably this has nothing to do with how the query is expressed. My guess is that it's more about what happens to the data once it comes from the database, before it is delivered to the application. NHibernate is perhaps not the most performant tool in this aspect. Whether or not this is a problem depends on what you are trying to do. /Oskar --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
