1 / 33

@ Ben_Hall Ben@BenHall.uk Blog.BenHall.uk

My pain with. NHibernate Open Source Object Relational Mapping (ORM) Framework. @ Ben_Hall Ben@BenHall.me.uk Blog.BenHall.me.uk. Learning Curve. Agenda. Querying Mapping Relationships ‘Real’ application Castle’s Active Record. What is ORM?. Mapping between objects and database.

vonda
Download Presentation

@ Ben_Hall Ben@BenHall.uk Blog.BenHall.uk

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. My pain with • NHibernate • Open Source Object Relational Mapping (ORM) • Framework @Ben_HallBen@BenHall.me.ukBlog.BenHall.me.uk

  2. Learning Curve

  3. Agenda • Querying • Mapping • Relationships • ‘Real’ application • Castle’s Active Record

  4. What is ORM?

  5. Mapping between objects and database

  6. Objects vs Tables

  7. ORM allows us to talk in our own language

  8. Developers vs DBAs

  9. Personal Choice

  10. My choice is NHibernate

  11. http://sourceforge.net/projects/nhibernatehttp://teamcity.codebetter.com/overview.htmlhttp://sourceforge.net/projects/nhibernatehttp://teamcity.codebetter.com/overview.html

  12. DEMO Querying the database

  13. DEMO Create, update, delete

  14. DEMO relationships

  15. DEMO Stored procedures

  16. DEMO But I like linq

  17. The Real World

  18. Testing ASP.net Web Applications www.TestingASPnet.com

  19. DEMO Wrox pizza

  20. Sharp Architecture http://code.google.com/p/sharp-architecture/

  21. Active Record

  22. DEMO Active record

  23. In summary...

  24. Summary • NHibernate has a learning curve • After the initial hit, easy to continue • A lot more powerful than I have shown today • Fluent NHibernate over XML Mapping • Active Record has an improved out-the-box experience

  25. Thank you Ben HallBen@BenHall.me.ukBlog.BenHall.me.uk

  26. Resources • http://Blog.BenHall.me.uk • http://www.TestingASPnet.com • http://sourceforge.net/projects/nhibernate • http://teamcity.codebetter.com/overview.html • http://nhforge.org • http://www.castleproject.org/ActiveRecord/ • http://code.google.com/p/sharp-architecture/

  27. Flickr Images • http://www.flickr.com/photos/twenty_questions/2261331590/ • http://www.flickr.com/photos/kaibara/2920616863/ • http://www.flickr.com/photos/mag3737/1914076277/ • http://www.flickr.com/photos/zen/2273186263/ • http://www.flickr.com/photos/frielp/6829509/ • http://www.flickr.com/photos/e_phots/2345645865/ • http://www.flickr.com/photos/leon_homan/2856628778/ • http://www.wordle.net

More Related