.net 如何配置NHibernate以使用MS SQL 2016(RTM)?
my visual studio正在使用的MS SQL Server版本如下: Microsoft SQL Server 2016(RTM)-13.0.1601.5(X64) 我是NHibernate的新手,我不知道该用哪种方言。 是否可以设置以下配置参数:.net 如何配置NHibernate以使用MS SQL 2016(RTM)?,.net,sql-server,nhibernate,.net,Sql Server,Nhibernate,my visual studio正在使用的MS SQL Server版本如下: Microsoft SQL Server 2016(RTM)-13.0.1601.5(X64) 我是NHibernate的新手,我不知道该用哪种方言。 是否可以设置以下配置参数: <hibernate-configuration> <session-factory xmlns="urn:nhibernate-configuration-2.2"> <property
<hibernate-configuration>
<session-factory xmlns="urn:nhibernate-configuration-2.2">
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="dialect">NHibernate.Dialect.MsSql2016Dialect</property>
<property name="connection.connection_string">Data Source=Bookstore.mdf</property>
<mapping resource="NHibernate_1.Book.hbm.xml" assembly="NHibernate_1" />
</session-factory>
</hibernate-configuration>
NHibernate.Connection.DriverConnectionProvider
NHibernate.Driver.SqlClientDriver
NHibernate.dialogue.mssql2016dialogue
数据源=Bookstore.mdf
最近使用的方言是
检查最新版本的NHibernate源代码中的所有可用项:
- mssql2000.cs
- mssql2005dial.cs
- mssql2005dialoguequerypage.cs
- mssql2008dialent.cs
- MsSql2012Dialect.cs