Upload
mohamed-meligy
View
117
Download
3
Tags:
Embed Size (px)
DESCRIPTION
ORMs are not just certain products like LINQ To SQL, Entity Framework, NHibernate, LLBLGen. It’s a design pattern that each ORM vendor has his own understanding of it and way of implementing. In this session we go through the most common implementation patterns with code examples in NHibernate and remarks on how other ORMs implement the same functionality (or not). We are likely to talk about many language, framework features and tools like Expression Trees and Reflection and code generation.
Citation preview
Introduction to ORM Patterns with Code Samples in NHibernate
Mohamed Meligy
Who Am I ?
• 2005: Blogging, http://geekswithblogs.net/Mohamed, http://weblogs.asp.net/meligy, http://GuruStop.NET
• 2006: SilverKey Demo Day 1• 2007: SilverKey Demo Day 2• 2007: Several dotNETwork Gatherings• 2008: ITWorx Cutting Edge Club• 2008: Several dotNETwork Gatherings• 2009: doeNETwork Code Camp`09• Worked in SilverKey, Raya Experts Team• Currently Working in Abu Dhabi• 2010: doeNETwork Code Camp`10
THIS IS JUST OPEN TALK SESSION!
This is not to recommend Nhibernate or else…
Topics To Discuss
• ORMs!• Model First and Mapping Techniques• POCO and Active Record• Loading Techniques
Classic ApplicationsDatabase• Persistence (Tables,..)• Data Objects (SPROCs, etc…)
SQL Helper Classes
Create / Read / Update / delete
Business Logic (queries, conditions)
UI
http://tinyurl.com/meligy-orms
Database
ORM Layer
ORM Calling Code
Business Logic
UI
The Case With ORM
ORM
objects relational
http://www.kevinwilliampang.com/post/How-Fanboys-See-NET-ORMs.aspx
POCO
THE MAPPING
DEMO
Where to go…• ORM
– http://weblogs.asp.net/fbouma• http://llblgen.com
– http://en.wikipedia.org/wiki/Object-relational_mapping
• NHibernate– http://nhforge.org
• http://nhforge.org/blogs/nhibernate• http://nhforge.org/doc/nh/en/index.html
– http://blogs.hibernatingrhinos.com– http://sharparchitecture.net– http://groups.google.com/group/nhusers
• http://ayende.com• http://tekpub.com• http://dimecasts.net• http://www.slideshare.net/pagsousa/poeaa-by-example• http://GuruStop.NET