开发者

NHIbernate 3 can't automap XmlDocument property

I'm trying to map a type where one of the properties is an XmlDocument but I get this error:开发者_如何学JAVA

NHibernate.MappingException : An association from the table ChangeLog_TestAuditHistory refers to an unmapped class: System.Xml.XmlDocument

I am using Fluent NHibernate automappings. NHibernate version 3.0.0.4000 and Fluent NHibernate version 1.2.0.694. I know NHibernate is supposed to support xml columns, but I've never seen any examples using auto mappings.


That's probably a bug in Fluent, or a wrong convention... you probably need to tell it that XmlDocument is not an entity.

If you map it as a regular property, NH will use the correct mapping by default.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜