This is a mirror of official site: http://jasper-net.blogspot.com/

NHibernate Mapping Samples – 50 Samples of NHibernate Mapping

| Monday, July 30, 2012
NHibernate is a widely used open-source ORM solution for .NET Framework. It is well-known for its great flexibility in mapping .NET classes to database tables, because it supports most kinds of such mapping ever needed by developers. However, its is also well-known for its complex mapping both fluent and XML. To help beginner developers to get acquainted with NHibernate mapping, Devart releases NHibernate Mapping Samples application, which demonstrates 50 different mapping cases and how they are mapped using both fluent and XML mapping.

How to Use
NHibernate Mapping Samples application does not require any third-party tools except for the .NET Framework. Simply launch the application and explore our NHibernate mapping samples. You can study the classes and mapping in the application window or open a Visual Studio project for each sample to check how it works in a real application. Database creation script is available for each sample. You can also easily access NHibernate documentation page relevant to the opened sample. If you have Entity Developer, you may also open Entity Developer models that were used for generating mapping and classes for samples.

The window of the NHibernate Mapping Samples application consists of four parts.

Inline image 1

  1. The Samples tree lists all the available mapping cases.
  2. The Mapping box contains the sample of mapping for the selected mapping case. It has two tabs – XML and Fluent, containing the corresponding mapping code.
  3. The Code box contains the code of the classes, that are mapped.
  4. The Description box contains the short description of the selected mapping case and links that allow you to open the sample in Visual Studio, open model in Entity Developer, view the database script for this sample, or open the corresponding page in NHibernate documentation.

QR: Inline image 2

Posted via email from Jasper-net

0 comments: