SlideShare ist ein Scribd-Unternehmen logo
1 von 32
1
NHibernate
.NET Core
Visão Geral
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!
4
61k
Minutos assistidos
Impacto
Público impactado
b
4457
Membros nas comunidades
e
~140
Posts
d
1k
Horas assistidas
5
Contatos
.NET + Open Source
Github
YouTube
Facebook Pages
LinkedIn
Twitter
Instagram ( em breve )
6
NHibernate
.NET Core
Visão Geral
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
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
10
ORM
NHibernate no .NET Core
11
ORM
Mapeamento Objeto Relacional
Mapeamento
Configuração que
informa para um
mecanismo como
correlacionar...
Objeto
Entidades e seus
Membros (Propriedades)
Relacional
Tabelas/Views e Colunas
( 6 K
12
ORM - Classe
Mapeamento Objeto Relacional
13
ORM - Mapping
Mapeamento Objeto Relacional
14
ORM - Mapping
Mapeamento Objeto Relacional
15
Hibernate
NHibernate no .NET Core
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
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.
18
Boring?
20
Features
NHibernate no .NET Core
21
Dynamic Model
Nhibernate Features
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.
23
Lifecycle Callbacks
Nhibernate Features
24
Interceptors
Nhibernate Features
25
IValidatable callback
Nhibernate Features
26
Estratégia de Mapeamento
Nhibernate Features
27
28
Caching
Nhibernate Features
https://github.com/nhibernate/NHibernate-Caches/tree/master/MemCache/NHibernate.Caches.MemCache
https://github.com/nhibernate/NHibernate-Caches/blob/master/MemCache/NHibernate.Caches.MemCache/MemCacheProvider.cs
29
Query
Nhibernate Features
30
QueryOver
Nhibernate Features
31
Criteria
Nhibernate Features
32
_ Bonus_
Performance
NHibernate no .NET Core
33
NHibernate é Lento…
Nhibernate Features
34
35
DEMOS
NHibernate no .NET Core

Weitere ähnliche Inhalte

Ähnlich wie NHibernate no .NET Core

NET app modernization and Microsoft Azure.pptx
NET app modernization and Microsoft Azure.pptxNET app modernization and Microsoft Azure.pptx
NET app modernization and Microsoft Azure.pptx
NishitPatel409228
 

Ähnlich wie NHibernate no .NET Core (20)

ASP.NET Core: The best of the new bits
ASP.NET Core: The best of the new bitsASP.NET Core: The best of the new bits
ASP.NET Core: The best of the new bits
 
.Net: Introduction, trends and future
.Net: Introduction, trends and future.Net: Introduction, trends and future
.Net: Introduction, trends and future
 
Mini .net conf 2020
Mini .net conf 2020Mini .net conf 2020
Mini .net conf 2020
 
Dotnet Frameworks Version History
Dotnet Frameworks Version HistoryDotnet Frameworks Version History
Dotnet Frameworks Version History
 
C#: Past, Present and Future
C#: Past, Present and FutureC#: Past, Present and Future
C#: Past, Present and Future
 
Nextcloud Android App Development Process Insights
Nextcloud Android App Development Process InsightsNextcloud Android App Development Process Insights
Nextcloud Android App Development Process Insights
 
23 Top .Net Core Libraries List Every Developer Must Know
23 Top .Net Core Libraries List Every Developer Must Know23 Top .Net Core Libraries List Every Developer Must Know
23 Top .Net Core Libraries List Every Developer Must Know
 
.NET Applications & Cloud Meetup at 7 Peaks
.NET Applications & Cloud Meetup at 7 Peaks.NET Applications & Cloud Meetup at 7 Peaks
.NET Applications & Cloud Meetup at 7 Peaks
 
Develop Community-based Android Distribution and Upstreaming Experience
Develop Community-based Android Distribution and Upstreaming Experience Develop Community-based Android Distribution and Upstreaming Experience
Develop Community-based Android Distribution and Upstreaming Experience
 
From .NET Core 3, all the rest will be legacy
From .NET Core 3, all the rest will be legacyFrom .NET Core 3, all the rest will be legacy
From .NET Core 3, all the rest will be legacy
 
Microsoft .NET 6 -What's All About The New Update
Microsoft .NET 6 -What's All About The New UpdateMicrosoft .NET 6 -What's All About The New Update
Microsoft .NET 6 -What's All About The New Update
 
Integrate 2016 recap (Pieter Vandenheede @BTUGbe)
Integrate 2016 recap (Pieter Vandenheede @BTUGbe) Integrate 2016 recap (Pieter Vandenheede @BTUGbe)
Integrate 2016 recap (Pieter Vandenheede @BTUGbe)
 
Btug.be - Integrate 2016 Recap by Pieter Vandenheede
Btug.be - Integrate 2016 Recap by Pieter VandenheedeBtug.be - Integrate 2016 Recap by Pieter Vandenheede
Btug.be - Integrate 2016 Recap by Pieter Vandenheede
 
Why the yocto project for my io t project elc_edinburgh_2018
Why the yocto project for my io t project elc_edinburgh_2018Why the yocto project for my io t project elc_edinburgh_2018
Why the yocto project for my io t project elc_edinburgh_2018
 
NET app modernization and Microsoft Azure.pptx
NET app modernization and Microsoft Azure.pptxNET app modernization and Microsoft Azure.pptx
NET app modernization and Microsoft Azure.pptx
 
Net framework
Net frameworkNet framework
Net framework
 
OSMC 2009 | NConf - Enterprise Nagios configurator by Angelo Gargiulo
OSMC 2009 | NConf - Enterprise Nagios configurator by Angelo GargiuloOSMC 2009 | NConf - Enterprise Nagios configurator by Angelo Gargiulo
OSMC 2009 | NConf - Enterprise Nagios configurator by Angelo Gargiulo
 
NET core 2 e i fratelli
NET core 2 e i fratelliNET core 2 e i fratelli
NET core 2 e i fratelli
 
Open frameworks 101_fitc
Open frameworks 101_fitcOpen frameworks 101_fitc
Open frameworks 101_fitc
 
.NET Fest 2018. Оля Гавриш. Что нового в .NET Core 3.0
.NET Fest 2018. Оля Гавриш. Что нового в .NET Core 3.0.NET Fest 2018. Оля Гавриш. Что нового в .NET Core 3.0
.NET Fest 2018. Оля Гавриш. Что нового в .NET Core 3.0
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 

NHibernate no .NET Core