📜 ⬆️ ⬇️

NHibernate 3.3.3.GA released

Hello. Just a few minutes ago, we released NHibernate 3.3.3.GA. You can pick up from sf.net or install using the NuGet package manager.

This is a minor release, but in addition to fixing bugs and shortcomings, we have prepared some tasty. Basically this release was aimed at improving the Linq provider:


 var emplyee = ( from emoloyee in db.Employees select new { EmployeeId = employee.EmployeeId, OrderIDs = employee.Orders.Select(o => o.OrderId) } ).ToArray(); 

* Currently, no additional criteria can be added to subqueries.
')
CAUTION :
In versions prior to 3.3.3.CR1, the processing of the Take() method contained a logical error: it did not matter where the call to this method was located — it was always processed as if the method call was located at the end. In version 3.3.3, this behavior was corrected - now Take() processed correctly in accordance with its semantics. Thus, the following queries may produce different results.

 session.Query<Foo>.OrderBy(...).Take(5).Where(...); 

 session.Query<Foo>.Where(...).OrderBy(...).Take(5); 


In version 3.3.3 and above, the first query will generate a subquery that will apply the limit on the number of rows before the where condition.

Full list of changes can be found here .

You can report found bugs in JIRA . Source code is available on GitHub .

Many thanks to all those who participated in the release of this release.

Source: https://habr.com/ru/post/173137/


All Articles