Greg Does IT

Do it to get it

About

The blog of Gergely Orosz on IT related topics: web, software design, .NET, PHP and the rest. Follow me @gergelyorosz on Twitter.

Note: before reading this article please see my views on comparing ORM tools. In short: this comparison is not suitable for comparing NHibernate and Entity Framework, due to the complexity of the tools vs the simplicity of this test; treat this post accordingly.
The reason I’m revising previous results is because some members of the NHibernate [...]

Read the rest of this entry »

As part of my thesis I measured the performance of some .NET ORM frameworks including NHibernate and Entity Framework. Measuring was done by implementing two simple applications using the same table structure and doing the same operations on the same data.
Note: before reading this article please see my views on comparing ORM tools. Also see [...]

Read the rest of this entry »

NHibernate LINQ 1.0 is here

Monday, July 27th, 2009

One of my biggest concerns with NHibernate is that to use it one must become familiar with Criteria and Expression quieries which is a timely process.
However LINQ support has been released for NHibernate meaning you can create complex queries without the need of learning its querying language. You can download and try it from [...]

Read the rest of this entry »

I’ve ran into a querying scenario with NHibernate that was much less obvious to solve with the NHibernate query API than it would have been with SQL - for me at least.
In my model I’ve had a simple many-to-many relation: Entries that had multiple Categories each and Categories that belonged to multiple Entries as well.

In [...]

Read the rest of this entry »

I have had some trouble deleting the child in a one-to-many relationship in NHibernate. My schema described a simple parent-child relationship: a parent can have multiple children and every child has exactly one parent.
In the database schema I had two tables parentTable and childTable. ParentTable had an ID column and some other columns. The [...]

Read the rest of this entry »