本文介绍了NHibernate 3.0版中有没有更好的SybaseDialect实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经使用Fluent-NHibernate升级到了NHibernate 3.0。

在版本2.1.2中,我们可以使用SybaseDialect for ASE 12.在版本3.0中,SybaseDialect for ASE 12不支持。



我重复使用了Nhib 2.1.2中的旧方言,并且所有工作都正常。

我想问的由于这个被认为不是一个好的实施,因此被删除了,那里有更好的吗?



因为它的工作,我不知道需要做什么改进,但我想我会问。

解决方案

我从NHibernate v2.1.2的Dialect类创建了一个 SybaseDialect.cs 然后在配置文件中引用它,这似乎工作正常。


We have upgraded to NHibernate 3.0 with Fluent-NHibernate.

In version 2.1.2 we where able to use the SybaseDialect for ASE 12. In version 3.0 SybaseDialect for ASE 12 is not supported.

I reused the old Dialect from Nhib 2.1.2 and all is working.

What I wanted to ask since this one was removed as it was considered not a good implementation, is there a better one out there?

Since it's working I am not sure what improvements need be made but I thought I would ask.

解决方案

I took the Dialect class from NHibernate v2.1.2 and created a SybaseDialect.cs and then in the Config file I reference it, this seems to work fine.

这篇关于NHibernate 3.0版中有没有更好的SybaseDialect实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 08:36