Đã không cố gắng này vì vậy không chắc chắn nếu điều này sẽ làm việc cho bạn, nhưng bạn có thể thử tạo Dialect của riêng bạn và đăng ký mà trong web.config/app.config
Dialect lớp:
public class MyDialect:MsSql2005Dialect
{
public MyDialect()
{
RegisterColumnType(System.Data.DbType.UInt32, "bigint");
}
}
Web.config:
configuration>
<configSections>
<section name="hibernate-configuration" type="NHibernate.Cfg.ConfigurationSectionHandler, NHibernate" />
</configSections>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider, NHibernate</property>
<property name="connection.connection_string">
Server=127.0.0.1; Initial Catalog=thedatabase; Integrated Security=SSPI
</property>
<property name="dialect">MyDialect</property>
<property name="current_session_context_class">managed_web</property>
</session-factory>
</hibernate-configuration>
<!-- other app specific config follows -->
</configuration>
Vâng, đó là điều cuối cùng tôi đã làm. Cảm ơn các bạn đã giúp đỡ, tất cả các bạn. –