Expression Trees: Why LINQ to SQL is Better than NHibernate(rapidapplicationdevelopment.blogspot.com)

submitted by LearLear(1195) 4 years, 2 months ago

The article claims that LINQ to SQL is inherently better than NHibernate because LINQ takes advantage of a new C# language feature called expression trees.

4 comments |category: |Views: 127

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by sirroccosirrocco(800) 4 years, 2 months ago 0

To me , that has almost NOTHING to do with NHibernate.
I mean sure, strongly typed. But you can't compare that LinqToSql to NHibernate .
You can compare the ToSql part with NHibernate and say : it produces better querys(or not) and compare mapping styles and what you can do with them.

There already is a project LinqToNhibernate. Then you will have type safety.

Reply

posted by LearLear(1195) 4 years, 1 month ago 0

Sirrecco, I (the author) never sold the article as a comparison. A comparison would definitely be an interesting post, maybe that's next. But if so I would definitely not put "Expression Trees" as the first two words in the title of the post.

You do bring up a good point about LINQ to NHibernate allowing strong typing, that would have been worth mentioning. Of course I get frustrated with NHibernate enough alone without adding an additional layer of abstraction between it and the database. But it would have been a good addition to the article.

Incidentally feel free to post on the blog itself in the future, I really do like the dialog aspect of blogging as much as anything else.

Reply

posted by sirroccosirrocco(800) 4 years, 1 month ago 0

I have in fact posted it :) , and yes, there is the Expression Trees thingy in the title , but i felt the accent was on LinqToSql vs NH . And I am really liking NH :P.
Can you tell ? ;)

Reply

posted by alexhalexh(0) 4 years, 1 month ago 0

Anything which says that one technology solution is "better than" another just isn't worth reading.

Reply

information Login or create an account to comment on this story