NHibernate配置设置

NHibernate配置设置,nhibernate,Nhibernate,这是我的配置文件。我有一个名为“盆地”的数据库。 我的sql server编辑是2012 express。 另外,我的项目名称是NHibernate_Test <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> <session-factory> <property name="connection.provider">NHibernate.Connection.Driv

这是我的配置文件。我有一个名为“盆地”的数据库。 我的sql server编辑是2012 express。 另外,我的项目名称是NHibernate_Test

  <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
  <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
  <property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property>
  <propert name="query.substitutions">hqlFunction=SQLFUNC</propert>
  <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
  <property name="connection.connection_string">Data Source=(local);Initial Catalog=Basin; Integrated Security=True; </property>
  <property name="show_sql">true</property>
  <mapping assembly="NHibernate_Test"/>
</session-factory>   </hibernate-configuration> </configuration

  <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
  <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
  <property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property>
  <propert name="query.substitutions">hqlFunction=SQLFUNC</propert>
  <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
  <property name="connection.connection_string">Data Source=(local);Initial Catalog=Basin; Integrated Security=True; </property>
  <property name="show_sql">true</property>
  <mapping assembly="NHibernate_Test"/>
</session-factory>   </hibernate-configuration> </configuration

NHibernate.Connection.DriverConnectionProvider
NHibernate.dialogue.mssql2008dialogue
hqlFunction=SQLFUNC
NHibernate.Driver.SqlClientDriver
数据源=(本地);初始目录=盆地;综合安全=真实;
符合事实的
它位于以下位置:

  <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
  <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
  <property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property>
  <propert name="query.substitutions">hqlFunction=SQLFUNC</propert>
  <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
  <property name="connection.connection_string">Data Source=(local);Initial Catalog=Basin; Integrated Security=True; </property>
  <property name="show_sql">true</property>
  <mapping assembly="NHibernate_Test"/>
</session-factory>   </hibernate-configuration> </configuration
<propert name="query.substitutions">hqlFunction=SQLFUNC</propert>
hqlFunction=SQLFUNC
与例外情况完全相同:

  <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
  <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
  <property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property>
  <propert name="query.substitutions">hqlFunction=SQLFUNC</propert>
  <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
  <property name="connection.connection_string">Data Source=(local);Initial Catalog=Basin; Integrated Security=True; </property>
  <property name="show_sql">true</property>
  <mapping assembly="NHibernate_Test"/>
</session-factory>   </hibernate-configuration> </configuration
..在命名空间中具有无效的子元素'propert'

  <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
  <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
  <property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property>
  <propert name="query.substitutions">hqlFunction=SQLFUNC</propert>
  <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
  <property name="connection.connection_string">Data Source=(local);Initial Catalog=Basin; Integrated Security=True; </property>
  <property name="show_sql">true</property>
  <mapping assembly="NHibernate_Test"/>
</session-factory>   </hibernate-configuration> </configuration
我们需要

  <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
  <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
  <property name="dialect">NHibernate.Dialect.MsSql2008Dialect</property>
  <propert name="query.substitutions">hqlFunction=SQLFUNC</propert>
  <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
  <property name="connection.connection_string">Data Source=(local);Initial Catalog=Basin; Integrated Security=True; </property>
  <property name="show_sql">true</property>
  <mapping assembly="NHibernate_Test"/>
</session-factory>   </hibernate-configuration> </configuration
<property...

阅读和理解错误信息101:阅读错误信息,彻底阅读并理解它所说的内容。然后根据错误消息检查代码。。。