SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

Similar a 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
 

Similar a 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
 

Último

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
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
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
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
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...
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
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
 

NHibernate no .NET Core