Object Relational Mapping A to Z. About Me Over A Decade of I.T. Experience Web Developer, DBA, DevOps, Mobile Microsoft Cert. in SQL Server Twitter:

Slides:



Advertisements
Similar presentations
Jacinto Limjap, Jr. Senior Software Design Engineer, Cormant Technologies Inc. LINQ for NHibernate { Easy OR Mapping with C# and Visual Studio 2008 }
Advertisements

Object Relational Mapping – ORM Entity Framework
Object Relational Mapping John M. Miller Perpetual Data Systems.
Michael Paladino Lead Application Developer EagleOne.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
© Copyright SELA Software & Education Labs Ltd Baruch Hirsch St. Bnei Brak Israel Microsoft Entity Framework v1.1 over Oracle Database Erez.
Session-01. Hibernate Framework ? Why we use Hibernate ?
René Balzano Technology Solution Professional Data Platform Microsoft Switzerland Database Development with SQL Server Data Tools (SSDT)
Discover, Master, InfluenceSlide 1 SQL Server Compact Edition and the Entity Framework Rob Sanders Readify.
Introduction to JPA Java Persistence API Introduction to JPA.
Object and object-relational databases 1. Object databases vs. Object-relational databases Object databases Stores complex objects – Data + functions.
Entity Framework Code First End to End
DBMS By Narinder Singh Computer Sc. Deptt. Topics What is DBMS What is DBMS File System Approach: its limitations File System Approach: its limitations.
ISYS 512 Business Application Design and Development with.Net David Chao.
By: Blake Peters.  OODB- Object Oriented Database  An OODB is a database management system in which information is represented in the form of objects.
Data Access Patterns Some of the problems with data access from OO programs: 1.Data source and OO program use different data modelling concepts 2.Decoupling.
Entity Framework MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
Eric Nelson (or )
Visual Studio 2010 and.NET Framework 4 Training Workshop.
Entity Framework Overview. Entity Framework A set of technologies in ADO.NET that support the development of data-oriented software applications A component.
Dr. Mohamed Osman Hegazi 1 Database Systems Concepts Database Systems Concepts Course Outlines: Introduction to Databases and DBMS. Database System Concepts.
OR Mapping Object relational mapping (ORM, O/RM, and O/R mapping)
Domain and Persistence Patterns. Fundamental Pattern Types Design Patterns Business Logic Patterns.
(1) Introduction to Models using the Play Framework Philip Johnson Collaborative Software Development Laboratory Information and Computer Sciences University.
ISYS 350 Business Application Development David Chao.
ISYS 350 Building Business Applications David Chao.
Sudoku Taryn Wise. Operational Concepts and System Requirements Solve sudoku puzzles in a convenient way Have a notes option for number possibilities.
Oct * Brad Tutterow. VS 2008.NET 3.5LINQ Entity Framework  The ADO.NET Entity Framework is part of Microsoft’s next generation of.NET technologies.
EntityFrame work and LINQ CH 14. linq LINQ enables you to query data from a wide variety of data sources, directly from your programming code. LINQ is.
EXAM 1 NEXT TUESDAY…. EXAMPLE QUESTIONS 1.Why is the notion of a “state” important in relational database technology? What does it refer to? 2.What do.
Buck Woody Senior Microsoft SQL Server Specialist SESSION CODE: DAT210.
Language Integrated Query (LINQ). Data Access Programming Challenges Developers must learn data store-specific query syntax Multiple, disparate data stores.
Fall CIS 764 Database Systems Engineering L18.2 : Object Relational Mapping … ….Object persistence.
Leverage NHibernate in your architecture without tight coupling Presented by Jeffrey Palermo CTO, Headspring Systems Microsoft MVP, MCSD.Net
Declarative Languages and Model Based Development of Web Applications Besnik Selimi South East European University DAAD: 15 th Workshop “Software Engineering.
Entity Framework 7 Who Are You & What Have You Done to my ORM?
ISYS 512 Business Application Design and Development with.Net David Chao.
Introduction to ORM Hibernate Hibernate vs JDBC. May 12, 2011 INTRODUCTION TO ORM ORM is a programming technique for converting data between relational.
ORM Basics Repository Pattern, Models, Entity Manager Ivan Yonkov Technical Trainer Software University
2 Behind every great site, there is great data Eric Nelson Developer Evangelist Microsoft UK
By Shantanu Narang CS 157b. Relational Model  Object Model Object Oriented Databases(OOD) Object Query Language(OQL) OOD pros and cons.
CS 440 Database Management Systems Stored procedures & OR mapping 1.
Submitted by: Moran Mishan. Instructed by: Osnat (Ossi) Mokryn, Dr.
Thank you to our AWESOME sponsors!
Microsoft BI Online Training AcuteSoft: India: , Land Line: +91 (0) USA: , UK.
Fall CIS 764 Database Systems Engineering L11: Object Relational Mapping … (a) ORM, Object persistence (b) Pets sequence.
Best 3 Software Development Languages. Hibernate Training Hibernate is a high-performance object-relational mapping tool and query service. Hibernate.
New Technology: Why, What ,How
Part 1: Overview of LINQ Intro to LINQ Presenter: PhuongNQK.
5/15/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
LINQ for SQL SQL Saturday May 2009 David Fekke.
Chris Menegay Sr. Consultant TECHSYS Business Solutions
Entity Framework By: Casey Griffin.
ADO.NET Entity Framework Marcus Tillett
ADO.NET Entity Framework
Overview of Data Access
SQL Server Data Tools Gert Drapers
ORMs and the DBA How to Make Both Happy.
Entity Framework Core.
Language Integrated Query (LINQ)
Introduction to Object-Relational Mapping for DBAs
ORMs and the DBA How to Make Both Happy.
Jim Nakashima Program Manager Cloud Tools
Visual Studio 2005 Tools For Office: Creating A Multi-tier Application
ORMs and the DBA How to Make Both Happy.
ບົດທີ 6 ການຄຸ້ມຄອງຊັບພະຍາກອນຂໍ້ມູນ (Managing Data Resource)
Why should I care about SQL, if I have ORM?
Entity Framework & LINQ (Language Integrated Query)
Visual Studio 2010 and .NET Framework 4 Training Workshop
Presentation transcript:

Object Relational Mapping A to Z

About Me Over A Decade of I.T. Experience Web Developer, DBA, DevOps, Mobile Microsoft Cert. in SQL Server

Summary What an Object Relational Mapper Is Why you might use an Object Relational Mapper Problems using Object Relational Mapper Solutions to common issues Popular Object Relational Mapper examples Debugging Final Tips

What Is It? Wikipedia: …”technique for converting data between incompatible type systems in object- oriented programming languages. This creates, in effect, a ‘virtual object database’ that can be used from within the programming language”type systemsobject- orientedobject database “Maps” set based data to objects useable by Object Oriented languages.

What Is An ORM

What is An ORM? © Universal Studios. All rights Reserved.

What Is An ORM? Database Management Systems: ~1960 Object Oriented Programming: ~50s/60s One of the first ORMs was TopLink for SmallTalk in 1994

Popular Flavors

What Is An ORM?

Object Impedance Mismatch Wikipedia defines this as: “…conceptual and technical difficulties that are often encountered when a relational database management system (RDBMS) is being used by a program written in an object- oriented programming language or style; particularly when objects or class definitions are mapped in a straightforward way to database tables or relational schemata.”relational database management systemobject- orientedprogramming language

The “ORM problem”

Solutions Abandon the Object Model altogether returning to traditional methods Use a storage method that is object oriented itself (OODBMS, NoSQL possibly) Hand-crafting each Mapping Mix of ORM and SQL Integrate datasets into language itself (think LINQ) Build solution on relational concepts (blocks of data)

The Good News

Taking A Peek

NHibernate Demo

NHibernate

NHibernate Demo

Nhibernate Demo

NHibernate Demo

Taking A Peek

Entity Framework

Micro ORM Slimmed down ORMs What they lack in features they make up for in speed Popular flavors are PetaPoco and Dapper

Massive

Massive Demo

Debugging An ORM Demo

ORM Pros Simpler for developers Supports many database platforms Supports many different languages The impedance mismatch is handled for us Developer can focus on the code, not the database

ORM Cons Can be cumbersome to set up (NHibernate) Joins and complex queries can be difficult Hard to read performance metrics Another layer between the database and the application.

Final Thoughts ORMs continue to advance Work for most solutions Consider stored procedures or views for finer control.

Code Links NHibernate Demo Source Code: Entity Framework Demo Source Code: Massive Micro ORM Demo Source Code: Slides posted at: