Object Relational Mapper.pdf - Advanced.NET Server Development Object Relational Mapping(ORM Instructor Mahboob Ali Email [email protected]

Object Relational Mapper.pdf - Advanced.NET Server...

This preview shows page 1 - 10 out of 27 pages.

Advanced .NET Server Development Object Relational Mapping (ORM) Instructor: Mahboob Ali Email: [email protected]
Learning outcomes Explain the purpose of Object Relational Mappers
Objectives Introduction to ORMs Introduction to .NET ORMs Benefits of ORMs Selecting a suitable .NET ORM
Introduction to ORM Developing software is a complicated task. We came a long way in software development now, we passed Assembler days We have now Interpreters Higher level languages Tools and Techs With all these new technologies we still face challenges in development One of the Biggest challenge comes from Database.
Introduction to ORM Until recently, the most efficient way to store data was in a relational database A relational database can store vast amounts of data in a structured way that allows for efficient storage, access, and search More recently, so called NoSQL solutions have been gaining production use on truly vast datasets with real-time and concurrent operational constraints Think Facebook and Twitter and their use of Hadoop and Cassandra
Introduction to ORM If you’ve decided to use Object Oriented Language to write your application in, then what will be the next steps? Process to gather requirements Creating a design (UI/ UX) Development (coding) Testing During the design phase what is your approach to access the data? Are you going to use stored-procedures for CURD? Are you going to create a custom data access layer using ADO.NET and COM+? Or may be get a widget to do all this?
Trouble with Objects From an OO standpoint, the problem with these persistence mechanisms is that their core abstractions are not objects They are tables with rows and columns (RDBMS) Or They are (some variation on) key-value pairs (NoSQL)
Problems Conti… The OO world, on the other hand, has Classes, sub-classes, inheritance, associations Objects, atts, methods, polymorphism These concepts do not easily map into the abstractions of persistence mechanisms Even the creation of serialization mechanisms is non-trivial with the work that has to go in to traversing and reconstituting an object graph
An Example Dog name spayed fetch() sit() Owner name playWithPet() goForWalk() +

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture