Goals
- Implement a powerful data persistence layer with the ORM NHibernate framework
Program
Reminders: ADO.Net with C # or VB.NET
Pattern DAO (Data Access Object)
ORM (Object Relational Mapping ) Frameworks:
NHibernate contributions : history, versions, functionalities
Dependencies, references
Global configuration
Architecture of NHibernate objects: SessionFactory, Session, …
Workshop: Setting up the environment, creating an application using NHibernate, global configuration file
Mapping of tables and management of primary keys (simple, compound)
Mapping of database types, properties of columns
Concurrency management: optimistic (dirty, all, versioning), pessimistic
Relationship management: OneToMany / ManyToOne, OneToOne, ManyToMany
Parameter setting of cascades
Collection management: Map, Set, List, …
Inheritance mapping
Loading strategies: Lazy or Eager
Named queries
Retrieving the Hibernate session and querying / modifying
available Dao data and essential methods
Workshop: Realization of a global mapping diagram of a database, CRUD operations (Create Read Update Delete)
Hibernate Query Language: presentation, functionalities
Basic selections, filters
Complex joins
Aggregation, string functions, …
Load management Lazy
Linq to Hibernate
Native SQL queries
Workshop: Realization of complex queries, use of Ling to Hibernate
Entity lifecycle and validation
Interceptors, Event-listeners
Advanced configuration: performance and functionalities
Using the
Inversion of control cache with Spring.Net
Workshop: Cache management and Spring.Net / NHibernate cohabitation
Duration
3 days
Price
£ 1995
Audience
.Net Developers
Prerequisites
Knowledge of C # or VB.NET
Reference
.NE169-F
Sessions
Contact us for more informations about session date