Business and Technology Consulting Organization in Mumbai

Electronic Transformation Globally Technology Solution IT Consultancy Service Provider
Object mapping is the most interesting part in nhibernate, and this is the reason why .net developers taking more interest in hibernate architecture.

NHibernate do mapping between objects (.net class) and backend data (Database-Tables). These mappings are done in xml file. In nhibernate we also call it hbm file.
Nhibernate mappping sample
<?xml version="1.0" encoding="utf-8" ?>
1:<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0"
2: namespace="NHibernateASPSample.Domain"
3: assembly="NHibernateASPSample.Domain">
4:
5: <class name="DbUser" table="DbUser">
6:
7: <id name="IdUser" column="IdUser" type="Int32">
8: <generator class="identity"/>
9: </id>
10:
11: <property name="Login" column="Login" type="String"/>
12: <property name="Password" column="Password" type="String"/>
13: <property name="UserData" column="UserData" type="String"/>
14:
15: </class>
16:
17:</hibernate-mapping>
18:
Sponsored by

HR Recruitment & Process Management System
Jewellery production process management software
Share
©2009 ETG Consultancy, All Rights Reserved Privacy Policy | Terms & Conditions
Asp.net, Ado.net, .Net Remoting, .Net Webservice, SQL, XML, XSLT, WCF, WPF, WWF NHibernate, Ajax, Jquery, DHTML