Course Details

Previous Page


NHibernate Advanced Techniques


Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number



Overview/Description
NHibernate is an open-source object relational mapper for the Microsoft .NET platform. It’s fairly easy to get up and running with NHibernate, but using it optimally in a large project requires more advanced techniques. In this course, you’ll find out about different approaches you can use with NHibernate, as well as how to perform tasks such as logging activity, caching data, instantiating sessions with an IoC container, and unit testing.

Target Audience
Developers interested in using NHibernate in web-hosted or enterprise projects

Prerequisites
None

Expected Duration (hours)
2.1

Lesson Objectives

NHibernate Advanced Techniques

  • start the course
  • generate classes from an existing database schema
  • generate a database schema from a set of classes
  • identify best practices for using NHibernate
  • compare NHibernate and Entity Framework
  • use callbacks to perform extra actions on classes
  • validate inputs before they are processed
  • attach intercept code to NHibernate events
  • use identifier mapping methods
  • map different column and data types and control the amount of data returned via Lazy Loading
  • map the default behavior of cascading inserts, updates, and delete operations
  • make mappings more robust in a multi-user environment
  • map a set of inherited models to separate tables in a database
  • use mapping to retrieve data from stored procedures or views
  • log NHibernate activity to an external log file
  • cache NHibernate data for better performance
  • use an IoC container to instantiate NHibernate sessions
  • use NHibernate in unit tests
  • integrate NHibernate in a classic ASP.NET WebForm Application
  • use the features of ASP.NET MVC and WebAPI to integrate NHibernate
  • enable NHiberate to retrieve data in a WCF service
  • use NHibernate with the Active Record pattern
  • use NHibernate with the Repository pattern
  • use NHibernate with the Unit of Work pattern
  • create a web page with the Repository pattern
  • Course Number:
    sd_nhib_a02_it_enus