词条 | NHibernate |
释义 |
| logo = NHibernate-logo.svg | name = NHibernate | latest release version = 5.2.3 | latest release date = {{Start date and age|2019|1|14}} | latest preview version = | latest preview date = | operating system = Cross-platform | platform = .NET 4.6.1, .NET Standard 2.0, .NET Core 2.0, and Mono | programming language = C# | genre = Object-relational mapping | license = GNU Lesser General Public License 2.1 | website = http://nhibernate.info }} NHibernate is an object-relational mapping (ORM) solution for the Microsoft .NET platform. It provides a framework for mapping an object-oriented domain model to a traditional relational database. Its purpose is to relieve the developer from a significant portion of relational data persistence-related programming tasks. NHibernate is free as open source software that is distributed under the GNU Lesser General Public License. NHibernate is a port of Hibernate. Feature summaryNHibernate's primary feature is mapping from .NET classes to database tables (and from CLR data types to SQL data types). NHibernate also provides data query and retrieval facilities. NHibernate generates the SQL commands and relieves the developer from manual data set handling and object conversion, keeping the application portable to most SQL databases, with database portability delivered at very little performance overhead. NHibernate provides transparent persistence for Plain Old CLR Objects (POCOs). The only strict requirement for a persistent class is a no-argument constructor, which does not have to be public. (Proper behavior in some applications also requires special attention to the Equals() and GetHashCode() methods.)[1] HistoryNHibernate was started by Tom Barrett, and later picked up by Mike Doerfler and Peter Smulovics. At the end of 2005, JBoss, Inc. (now part of Red Hat) hired Sergey Koshcheyev, the then lead developer of NHibernate, to work full-time on its future versions.[2] At the end of 2006 JBoss stopped the support to this project; it is now entirely developed and led by the community. Version 1.0 mirrored the feature set of Hibernate 2.1, as well as a number of features from Hibernate 3. NHibernate 1.2.1, released in November 2007, introduced many more features from Hibernate 3 and support for .NET 2.0, stored procedures, generics, and nullable types. NHibernate 2.0NHibernate 2.0 was released on August 23, 2008. It is comparable to Hibernate 3.2 in terms of features. With the version 2.0 release, NHibernate dropped support for .NET 1.1.[3] NHibernate 2.1 was released July 17, 2009. NHibernate 3.0NHibernate 3.0 was released on December 4, 2010 and is the first version to use .NET 3.5, with features such as:
NHibernate 3.2NHibernate 3.2 was released in April, 2011. Some of the new features were:[4]
NHibernate 4.0NHibernate 4.0 was released on August 17, 2014.[5] This version requires .NET Framework 4.0 or later. NHibernate 5.0NHibernate 5.0 was released on October 10, 2017. It provides support for asynchronous programming.[6] This version requires .NET Framework 4.6.1 or later. NHibernate 5.1NHibernate 5.1 was released on March 17, 2018. It supports .NET Standard 2.0 and .NET Core 2.0.[7] NHibernate 5.2NHibernate 5.2 was released on December 4, 2018.[7] ContributionsAs open source software, NHibernate has received many contributions from its users. Implementation of LINQ has allowed Language Integrated Query use with NHibernate.[8] SampleHere a code snippet to add an object to the database and shows how to retrieve, modify and update an object in the database using NHibernate. NHibernate's configuration may affect when NHibernate executes SQL statements. See also{{Portal|Free and open-source software}}
References1. ^hibernate.org - Equals and HashCode 2. ^[Hibernate] NHibernate joins Hibernate at JBoss Inc] 3. ^From NH1.2.1GA to NH2.0.0 - NHibernate 4. ^{{Cite web|url=https://weblogs.asp.net/ricardoperes/nhibernate-3-2-released|title=NHibernate 3.2 Released|website=weblogs.asp.net|language=en-US|access-date=2019-01-25}} 5. ^{{Cite web|url=https://groups.google.com/forum/#!topic/nhusers/_NTLpl2R4_o|title=NHibernate 4.0.0.GA released|last=|first=|date=|website=groups.google.com|archive-url=|archive-date=|dead-url=|access-date=2019-01-25}} 6. ^{{Cite web|url=https://nhibernate.info/blog/2017/10/10/nhibernate-5-0-released.html|title=NHibernate 5.0 Released - NHibernate|website=nhibernate.info|access-date=2019-01-25}} 7. ^1 {{Cite web|url=https://groups.google.com/forum/#!topic/nhusers/e59YwW8ICv4|title=NHibernate 5.2.0 Released - Google Groups|last=|first=|date=|archive-url=|archive-date=|dead-url=|access-date=2019-01-25}} 8. ^Implementing Linq for NHibernate: A How To Guide - Part 1 Bibliography
| first1 = Jason | last1 = Dentler | date = October 4, 2010 | title = NHibernate 3.0 Cookbook | edition = 1st | publisher = Packt Publishing | isbn = 1-84951-304-X | url = https://www.packtpub.com/nhibernate-3-0-cookbook/book }}
| first1 = Aaron | last1 = Cure | date = May 5, 2010 | title = NHibernate 2 Beginner's Guide | edition = 1st | publisher = Packt Publishing | isbn = 1-84719-890-2 | url = https://www.packtpub.com/nhibernate-2-x-beginners-guide/book }}
| first1 = Pierre Henri | last1 = Kuaté | first2 = Tobin | last2 = Harris | first3 = Christian | last3 = Bauer | first4 = Gavin | last4 = King | title = NHibernate in Action | publisher = Manning Publications | year = February 2009 | isbn = 1-932394-92-3 | url = }}
| first1 = Benjamin | last1 = Perkins | date = September 2011 | title = Working with NHibernate 3.0 | edition = 1st | publisher = Wrox | isbn = 1-11811-257-1 | url = http://www.wrox.com/WileyCDA/WroxTitle/Working-with-NHibernate-3-0.productCd-1118112571.html }} External links
4 : Free software programmed in C Sharp|.NET programming tools|.NET object-relational mapping tools|Object-relational mapping |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。