我遇到NHibernate映射问题。我最近在表(TPerson)中添加了一个新字段(LanguageID),并在将该字段添加到映射文件中,然后没有发生绑定,也没有数据加载到应用程序中。当我注释掉LanguageID字段时,所有内容都按照需要工作
<class name="TPerson" table="TPerson" mutable="true">
<id name="Id" column="PersonID" unsaved-value="0" access="field.camelcase-underscore">
<generator class="identity" />
</id>
<version name="Version" column="Version" type="PF.Admin.Domain.DomainModel.Version, PF.Admin.Domain" generated="always" access="field.camelcase-underscore" />
<property name="Lastname" column="Lastname" access="field.camelcase-underscore" />
<property name="Firstname" column="Firstname" access="field.camelcase-underscore" />
<property name="Gender" column="Gender" access="field.camelcase-underscore" />
<property name="Street" column="Street" access="field.camelcase-underscore" />
<property name="ZipCode" column="ZipCode" access="field.camelcase-underscore" />
<property name="City" column="City" access="field.camelcase-underscore" />
<property name="Phone" column="Telephone" access="field.camelcase-underscore" />
<property name="Fax" column="Fax" access="field.camelcase-underscore" />
<property name="Cellphone" column="Cellphone" access="field.camelcase-underscore" />
<property name="Deleted" column="Deleted" access="field.camelcase-underscore" />
<property name="EMailAddress" column="EMailAddress" access="field.camelcase-underscore" />
<property name="Country" column="Country" access="field.camelcase-underscore" />
<property name="Salutation" column="Salutation" access="field.camelcase-underscore" />
<property name="IsAuthorised" column="IsAuthorised" access="field.camelcase-underscore" />
<!--<property name="LanguageID" column="LanguageID" access="field.camelcase-underscore" />-->
<many-to-one name="Client" class="PF.Admin.Data.TClient, PF.Admin.Data" column="ClientId" not-null="false" update="false" insert="true" />
</class>