NHibernate.ADOException : Unable to perform find
在NHibernate的 mapping xml 文件中
有些字段加了方括号引起来后,会引起错误
xxx.Framework.TestCase.TestNHibernate : NHibernate.ADOException : Unable to perform find
----> System.IndexOutOfRangeException : [TargetID0_]
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" namespace="AOP.Framework" assembly="AOP.Framework">
<class name="Target" table="Target" dynamic-update="true">
<id name="ID" column="[TargetID]" unsaved-value="0">
<generator class="native" />
</id>
<property name="Class" column="Class" not-null="true" length="255" />
<property name="Method" column="Method" not-null="true" length="255" />
<bag name="Roles" table="TARGET_ROLE" lazy="false">
<key column="TargetID" />
<many-to-many class="Role" column="RoleID" />
</bag>
</class>
</hibernate-mapping>
有些字段加了方括号引起来后,会引起错误
xxx.Framework.TestCase.TestNHibernate : NHibernate.ADOException : Unable to perform find
----> System.IndexOutOfRangeException : [TargetID0_]













