NHibernate is an object-relational mapper (ORM) for .NET. It provides features like dynamic models, support for multiple database dialects, lifecycle callbacks, interceptors, caching, and querying via QueryOver, Criteria, and HQL. The presentation provides an overview of NHibernate's history and capabilities, and includes demonstrations of common operations like CRUD and configuration.
2. 3
z
V
z
z
O
Q
Ebix
Ofertas e Inovação
• Developer
• Software Architect
• Solution Architect
Gago.io
Site
Youtube
Instagram – Em breve!
Microsoft MVP
Developer Technologies
Community Manager
Facebook e telegram
Afinidade: .NET
MTAC
Multi Platform Audience Contributor
Oragon
Clean Architecture Toolkit
Who I am
Luiz Carlos Faria – gago!
6. 8
Os argumentos que me faz
usar Nhibernate como
principal solução para acesso
a dados no .NET Framework e
.NET Core.
A ORM
Entendendo um ORM
G NHibernate
Features
Q Hibernate
A história do Projeto java
Agenda - Overview
O que será abordado
12
111
10
9
8
57
6
7. 9
Como usar as features mais
comuns e incríveis
ACRUD Simples
Overview sobre como operar
GAvançado
Possibilidades
QConfiguração
Como configurar
Agenda - Demos
Mão na massa
12
111
20
3
4
57
6
14. 16
Java
Início – 2001 - Gavin King + Galera do Trampo (Cirrus Technologies)
b
2004 ~ 2005
Tom Barrett, Mike Doerfler, Peter Smulovics – Nhibernate Beta
Meu primeiro contato com NHc
2003
Hibernate 2
2005
Hibernate 3
g
2008
NH 2 – H 3.2
h
15. 17
2004 ~ 2005
NHibernate 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. 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.0
NHibernate 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.
NHibernate 2.1 was released July 17, 2009.
NHibernate 3.0
NHibernate 3.0 was released on December 4, 2010 and is the first version to use .NET 3.5, with features such
as:
Integrated LINQ support
Strongly typed criteria-like API called QueryOver
New AST-based parser for HQL engine
Support for lazy loading columns.
NHibernate 3.2
NHibernate 3.2 was released in April, 2011. Some of the new features were:[4]
Mapping by code: fluent configuration, .hbm.xml files are no longer required;
Subselect: ability to map SQL views as entities;
HQL paging: TAKE and SKIP on HQL;
Integrated bytecode provider: one less DLL to deploy.
NHibernate 3.3
NHibernate 3.3.0 was released on April 21, 2012.
NHibernate 3.3.1 was released on June 12, 2012.
NHibernate 3.3.2 was released on October 22, 2012
NHibernate 3.3.3 was released on March 17, 2013.
NHibernate 4.0
NHibernate 4.0 was released on August 17, 2014.
NHibernate 5.0
NHibernate 5.0 was released on October 10, 2017.
It provides support for asynchronous programming.
19. 22
Dialects
Nhibernate Features
DB2
DB2 for iSeries (OS/400)
Firebird
Informix
Informix 9.40
Informix 10.00
Ingres
Ingres 9
Microsoft SQL Server 7
Microsoft SQL Server 2000
Microsoft SQL Server 2005
Microsoft SQL Server 2008
Microsoft SQL Azure Server 2008
Microsoft SQL Server 2012
Microsoft SQL Server Compact Edition
Microsoft SQL Server Compact Edition 4.0
MySQL 3 or 4
MySQL 5
MySQL 5 Inno DB
MySQL 5.5
MySQL 5.5 Inno DB
Oracle
Oracle 9i
Oracle 10g, Oracle 11g
Oracle 12c
PostgreSQL
PostgreSQL
PostgreSQL 8.1
PostgreSQL 8.2 PostgreSQL 8.2.
PostgreSQL 8.3
SQLite
Sybase Adaptive Server Anywhere 9
Sybase Adaptive Server Enterprise 15
Sybase SQL Anywhere 10
Sybase SQL Anywhere 11
Sybase SQL Anywhere 12
Additional dialects may be available in the
NHibernate.Dialect namespace.