NHibernate 打不开工厂有可能是这几个原因

1. 属性必须虚拟化。

2.属性必须要有Id 字段

3.数据库必须要是创建好的数据库。

原文地址:https://www.cnblogs.com/jinhaoObject/p/4583447.html