Release
Just NHibernate Leader--fabio Maulo released the NHibernate 3.0.0.ALPHA1 version, which is the first public beta version of NHibernate 3.0.0.
You can download NHibernate 3.0.0.ALPHA1 here, based on. Net3.5 platform, specific files are as follows.
- NHibernate Source: Nhibernate-3.0.0.alpha1-src.zip
- NHibernate binary files: nhibernate-3.0.0.alpha1-bin.zip
Feature Introduction
NHibernate 3.0. Version 0 can be said to be a cross-era version, NHibernate contributors after a year of refinement and testing, adding a lot of new features and fixed many bugs. Let me summarize these new features myself.
Configuration section
There are two new ways of streaming configuration (fluent-configuration) and lambda expression configuration (lambda-configuration) configuration sessionfactory.
Add support for WCF, provide Wcfoperationsessioncontext, we can directly configure "Current_session_context_class" as "wcf_operation", Apply the nhibernate directly in WCF.
The adddeserializedmapping(hbmmapping mappingdocument, String documentfilename) method is added to the configuration class, Hbmmapping can be parsed directly, we can choose not to use XML file mapping.
Mapping part
Fabio Maulo completely reconstructed the NHibernate.Cfg.MappingSchema section, improved performance, and Fabio Maulo designed a configuration ORM tool--conform, to help us "automatically" implement mapping, of course, Conform is not part of nhibernate, we need to download separately.
Query section
In the NHibernate 3.0.0 release, new embebed Linq Provider and new strongly typed query API (queryover) were added two ways of querying, Then NHibernate 3.0.0 now supports 7 ways of querying.
Queryover is a conditional (criteria) query for lambda expressions that is readable and supports the property-renaming feature.
LINQ was developed by the Steve Strong contributor, fully based on the AST LINQ provider implementation. LINQ functionality was not provided in previous versions of NHibernate2.1.2, Ayende Rahien contributors also designed third party NHiberante.Linq.dll (currently discontinued), which is a LINQ based on the criteria API Provider, the main function is to convert a simple LINQ expression into the criteria API, so there are a lot of innate shortcomings, now we can completely abandon this third-party DLL, fully using NHibernate3.0.0 with the new LINQ query support.
Other
In addition to the new features that can be categorized above, there are a number of new features that I'll start with:
Property Lazy Loading feature: This is the function we have always dreamed of, NHibernate 3.0.0 implemented, note here that it only supports Castle Bytecode-providers, spring.net and Linfu are not supported.
No proxy Correlation feature: This function is similar to the above.
built-in HBM2DDL tool .
There are other features not listed, please refer to the release document for more information. Later post introduction.
Copyright NOTICE: This article for Bo Master http://www.zuiniusn.com original article, without Bo Master permission not reproduced.
NHibernate 3.0.0.ALPHA1 Release and new features introduction