unitinfoDAOTest.unitinfoDAOTest.UpdateTest:
SetUp : NHibernate.MappingException : Domain.unitinfo.hbm.xml(7,6): XML validation error: 元素 命名空间“urn:nhibernate-mapping-2.2”中的“class”。 的子元素 命名空间“urn:nhibernate-mapping-2.2”中的“property”。 无效。应为可能元素的列表: 命名空间“urn:nhibernate-mapping-2.2”中的“meta, subselect, cache, synchronize, comment, tuplizer, id, composite-id”。。
----> System.Xml.Schema.XmlSchemaValidationException : 元素 命名空间“urn:nhibernate-mapping-2.2”中的“class”。 的子元素 命名空间“urn:nhibernate-mapping-2.2”中的“property”。 无效。应为可能元素的列表: 命名空间“urn:nhibernate-mapping-2.2”中的“meta, subselect, cache, synchronize, comment, tuplizer, id, composite-id”。。

============================================================================================================================================================

报这个错时,不要犹豫,多半是缺少元素,id元素是必须的。

相关文章:

  • 2021-09-23
  • 2022-01-04
  • 2021-06-06
  • 2022-01-16
  • 2021-07-26
  • 2021-04-10
  • 2021-12-31
  • 2021-09-17
猜你喜欢
  • 2021-09-14
  • 2022-12-23
  • 2021-09-28
  • 2021-08-22
  • 2022-12-23
相关资源
相似解决方案