Working with NHibernate 3.0

This book provides examples using the IQuery, ICriteria, QueryOver, and LINQ to NHibernate API's within the context of an example Guitar Store inventory program. The reader is walked through the creation of a Microsoft SQL Server 2008 database, the creation of a Visual Studio 2010 solution con...

Descripción completa

Detalles Bibliográficos
Autor principal: Perkins, Benjamin (-)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Indianapolis, IN : Wiley c2011.
Edición:1st edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628069306719
Tabla de Contenidos:
  • Working with NHibernate 3.0; Contents; Chapter 1: Getting Started with NHibernate 3; What Is an ORM?; Creating a Sample Project: The GuitarStore; Project Requirements; Creating the GuitarStore Solution; Creating the Database; Configuring NHibernate; Downloading and Installing NHibernate; Creating the Class Files; Creating the Mapping Files; Mapping by Code; Understanding the property-ref Attribute; Configuration Techniques; Creating a Console Application for Testing; Configuring the GuitarStore WPF Program; Initializing NHibernate; Adding and Populating the DataGrid Control
  • Adding and Populating a ComboBoxFiltering the DataGrid Based on the ComboBox Selection; Understanding Lazy Loading; Configuring Logging Using log4net; The Appender; The Logger; Configuring Your Program to Use log4net; Serializing Startup; Serializing the Configuration; Validating a Serialized Configuration; Loading the Current Serialized Configuration; Using a Serialized Configuration; Timing the Startup; Interceptors and Events; Interceptors; Events; Implementing the Interceptor and Event Classes; Summary; Chapter 2: Using HQL; Introduction; Working with CreateQuery(); Implementing Paging
  • Using the Database Round-Trip CounterWorking with Calculated Fields; Implementing CreateMultiQuery(); Understanding GetNamedQuery(); Implementing Aggregate Database Functions with GetNamedQuery; Understanding DetachedQuery; Working with DetachedNamedQuery; Understanding Futures; Summary; Chapter 3: Using ICriteria; Introduction; Understanding the Stateless Session; Working with CreateCriteria; Implementing Paging; Implementing CreateMultiCriteria; Understanding DetachedCriteria; Working with QueryOver; Using Lambda Expressions; Understanding Futures; Using FetchMode
  • Configuring FetchMode in the Mapping FilesConfiguring FetchMode Programmatically; Implementing Aggregate Database Functions; Understanding Restrictions and Expressions; Working with Data Transfer Objects; Summary; Chapter 4: Using LING to NHibernate; Introduction; Working with LINQ to NHibernate; Implementing Paging; Understanding LINQ to NHibernate with Lambda Expressions; Understanding Aggregate Database Functions; Summary; Chapter 5: Managing State and Saving Data; Introduction; Understanding Concurrency; Creating an IUserType; Inserting Data; Inserting a Parent/Child into a Database
  • Understanding NHibernate CachingUsing the First-Level Cache; Implementing the Second-Level Cache; Understanding Evict(), Merge(), and Persist(); Using Evict(); Using Merge(); Using Persist(); Executing Batch Processes; Summary; Chapter 6: Using NHibernate with an ASP.NET MVC 3 Application; Installing ASP. NET MVC 3; Adding an ASP. NET MVC 3 Project to the GuitarStore Solution; Configuring NHibernate; Adding References to the Binaries; Adding connectionString to the Web.config File; Configuring the ASP.NET MVC Program to Use a session-per-web-request; Configuring the View and Controller
  • Summary