Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: NHibernate.MappingException: No persister for: U_SHOP.Entity.Domain.Address
Source Error:
Source File: G:\U-Shop\Code\U-SHOP.DAL.SQLServerImpl\AddressBookSqlDAO.cs Line: 32
Exception Details: NHibernate.MappingException: No persister for: U_SHOP.Entity.Domain.Address
Source Error:
Line 30: public long InsertAddress(Entity.Domain.Address ad) Line 31: { Line 32: long result=Convert.ToInt64(Session.Save(ad)); Line 33: Session.Flush(); Line 34: return result; |
Source File: G:\U-Shop\Code\U-SHOP.DAL.SQLServerImpl\AddressBookSqlDAO.cs Line: 32
解决方案:
XML文件的默认生成操作为“内容”,需要修改为“嵌入的资源”生成
本文转自 灵动生活 51CTO博客,原文链接:http://blog.51cto.com/smartlife/510198,如需转载请自行联系原作者