NHibernate.3.0.Cookbook第一章第六节Handling versioning and concurrency的翻译 第一章第二节Mapping a class with XML第一章第三节Creating class hierarchy mappings第一章第四节Mapping a one-to-many relationship第一章第五节Setting up a base entity class Handling versioning and concurrenc…
NHibernate is a port of Hibernate to the .NET platform. Hibernate is the leading open-source object-relational persistence library for Java, used to persist plain objects in relational databases. After several years of development, the first stable…
Setting up a base entity class设置一个实体类的基类 在这节中,我将给你展示怎么样去为我们的实体类设置一个通用的基类. 准备工作 完成前面三节的任务 如何去做 1.在Entity.cs中,为我们的Entity类输入如下代码: public abstract class Entity<TId> { public virtual TId Id { get; protected set; } public override bool Equals(object obj)…