The proxy class is an actual subclass of the persistent class.
实际上,代理类是持久化类的子类。
So, one need only add a few lines of code to an application and create a simple mapping file for each persistent class, and NHibernate takes care of all database operations.
好了,我们只需要在程序中添加几行代码,和为每一个映射文件创建持久化类,而且NHibernate可以照顾到所有的数据库操作。
The table must match the definition of your attributes; for example, the primary database key for the equations table must be the primary key of the Persistent class as well.
表必需与属性定义匹配,例如,等式表的主数据库键必须也是 Persistent 类的主键。
应用推荐