Cargando…

NHibernate 3.0 cookbook : 70 incredibly powerful recipes for using the full spectrum of solutions in the NHibernate ecosystem /

Annotation

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Dentler, Jason
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Pub., 2010.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; Table of Contents; Preface; Chapter 1: Models and Mappings; Introduction; Mapping a class with XML; Creating class hierarchy mappings; Mapping a one-to-many relationship; Setting up a base entity class; Handling versioning and concurrency; Creating mappings fluently; Mapping with ConfORM; Bidirectional one-to-many class relationships; Mappings enumerations; Creating class components; Chapter 2: Configuration and Schema; Introduction; Configuring NHibernate with App.config; Configuring NHibernate with hibernate.cfg.xml
  • Configuring NHibernate with codeConfiguring NHibernate with Fluent NHibernate; Configuring NHibernate using ConfORM Mappings; Configuring NHibernate logging; Reducing application startup time; Generating the database; Scripting the database; Using NHibernate Schema Tool; Chapter 3: Sessions and Transactions; Introduction; Setting up session per web request; Setting up session per presenter; Creating a session ASP.NET MVC action filter; Creating a Transaction ASP.NET MVC action filter; Using the Conversation per Business Transaction pattern; Using session.Merge; Using session.Refresh
  • Using stateless sessionsUsing dictionaries as entities; Using NHibernate with TransactionScope; Chapter 4: Queries; Introduction; Using Criteria Queries; Using QueryOver; Using QueryOver projections and aggregates; Using MultiCriteria; Using the Hibernate Query Language; Using MultiQuery; Using Named Queries; Using Futures; Eager loading child collections; Using LINQ to NHibernate; Using Detached Queries; Using HQL for bulk data changes; Chapter 5: Testing; Introduction; Using NHibernate Profiler; Fast testing with SQLite in-memory database; Preloading data with SQLite
  • Using the Fluent NHibernate Persistence TesterUsing the Ghostbusters test; Chapter 6: Data Access Layer; Introduction; Transaction Auto-wrapping for The Data Access Layer; Setting up an NHibernate Repository; Using Named Queries in the data access layer; Using ICriteria in The Data Access Layer; Using Paged Queries in the data access layer; Using LINQ Specifications In The Data Access Layer; Chapter 7: Extending NHibernate; Introduction; Creating an encrypted string type; Using well-known instance type; Using dependency injection with entities; Creating an audit-event listener
  • Creating and changing stamping entitiesGenerating trigger-based auditing; Setting MS Sql's Context Info; Using dynamic connection strings; Chapter 8: NHibernate Contribution Projects; Introduction; Configuring the cache; Configuring the cache with code; Property validation with attributes; Creating validator classes; Using the Burrows framework; Setting up full-text search; Sharding databases for performance; Using NHibernate Spatial; Appendix: Menu; ASP.NET MVC web applications; ASP.NET Web Forms applications; WPF and WinForms applications; Index