摘要: In short, mapping the properties of multiple entity classes to columns in one table.Refer to http://ayende.com/blog/3937/nhibernate-mapping-component<component/> is an interesting feature of NHibernate, which map more or less directly into the notion of a Value Type in DDD. This is a way to cr 阅读全文
posted @ 2012-08-30 16:13 webglcn 阅读(222) 评论(0) 推荐(0)
摘要: 1. Download nhibernate (version 3.1.0 GA, latest 3.3.1 doens't have lazy loading related dlls) from http://sourceforge.net/projects/nhibernate/files/NHibernate/2. Create a console application by adding following dlls3. Create a class named namespace TstDBConnection.Entities{ public class Course{ 阅读全文
posted @ 2012-08-30 13:32 webglcn 阅读(141) 评论(0) 推荐(0)
摘要: <?xml version="1.0"?><configuration> <configSections> <section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate"/> <section name="log4net" type="log4net.Config.Log4NetConfigurationSecti 阅读全文
posted @ 2012-08-30 13:23 webglcn 阅读(216) 评论(0) 推荐(0)