Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

NHibernate no .NET Core

476 views

Published on

O que é um ORM, apresentação de classes, mapeamento, um pouco da história do Hibernate e do NHibernate, e suas features fantásticas.
Uma grande parte dessas features são usadas no dia-a-dia, normalmente, e outra parte, mais complexa, fica como carta na manga.
Esse material foi apresentado no dia 04/Dezembro/2018 no DevWeek do Canal .NET

Published in: Technology
  • Be the first to comment

  • Be the first to like this

NHibernate no .NET Core

  1. 1. 1 NHibernate .NET Core Visão Geral
  2. 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!
  3. 3. 4 61k Minutos assistidos Impacto Público impactado b 4457 Membros nas comunidades e ~140 Posts d 1k Horas assistidas
  4. 4. 5 Contatos .NET + Open Source Github YouTube Facebook Pages LinkedIn Twitter Instagram ( em breve )
  5. 5. 6 NHibernate .NET Core Visão Geral
  6. 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. 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
  8. 8. 10 ORM NHibernate no .NET Core
  9. 9. 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
  10. 10. 12 ORM - Classe Mapeamento Objeto Relacional
  11. 11. 13 ORM - Mapping Mapeamento Objeto Relacional
  12. 12. 14 ORM - Mapping Mapeamento Objeto Relacional
  13. 13. 15 Hibernate NHibernate no .NET Core
  14. 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. 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.
  16. 16. 18 Boring?
  17. 17. 20 Features NHibernate no .NET Core
  18. 18. 21 Dynamic Model Nhibernate Features
  19. 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.
  20. 20. 23 Lifecycle Callbacks Nhibernate Features
  21. 21. 24 Interceptors Nhibernate Features
  22. 22. 25 IValidatable callback Nhibernate Features
  23. 23. 26 Estratégia de Mapeamento Nhibernate Features
  24. 24. 27
  25. 25. 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
  26. 26. 29 Query Nhibernate Features
  27. 27. 30 QueryOver Nhibernate Features
  28. 28. 31 Criteria Nhibernate Features
  29. 29. 32 _ Bonus_ Performance NHibernate no .NET Core
  30. 30. 33 NHibernate é Lento… Nhibernate Features
  31. 31. 34
  32. 32. 35 DEMOS NHibernate no .NET Core

×