Linq 2 Sybase ASE 数据库?有哪些选择?
我需要查询现有的 Sybase ASE 数据库,并希望使用 Linq 语法进行数据检索。
我不需要写访问权限,也不需要全套 Linq 运算符,只需 Select()
, SelectMany()
、Where()
和 GroupJoin()
有哪些选项可用?
特别是,我想知道 nHibernate 和基于 IQ 工具包构建新的 Linq2Sybase 提供程序。
I have a need to query an existing Sybase ASE database and would like to use Linq syntax for my data retrival.
I don't need write access, nor do I need the full set of Linq operators, just Select()
,SelectMany()
, Where()
, and GroupJoin()
What are options are available?
In particular, I'm wondering about nHibernate and building a new Linq2Sybase provider based on the IQ toolkit.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您始终可以使用 ADO.NET 将数据加载到各种
IEnumerable
集合中,然后使用 LINQ to Objects 对其进行查询。You can always use ADO.NET to load your data into various collections of
IEnumerable<T>
and then use LINQ to Objects to query it.这可能会实现。有免费试用。
This might do it. There's a free trial.
我花了相当多的时间研究 ORM 解决方案和 .NET 上的 Sybase ASE。我还没有找到任何支持 Sybase ASE 的免费/开源软件。
你成功让 NHibernate 工作了吗? NHibernate 似乎并不正式支持 Sybase ASE。
这些是我到目前为止查看过的选项:
如果有人可以在 .NET 上为 Sybase ASE 建议任何类型的 ORM 解决方案,我将不胜感激!
I have spent considerable time researching ORM solutions and Sybase ASE on .NET. I have not found anything free/open-source that supports Sybase ASE.
Did you manage to get NHibernate working? It doesn't look like NHibernate officially supports Sybase ASE.
These are the options I've looked at so far:
If anyone can suggest any sort of ORM solution on .NET for Sybase ASE, I'd appreciate it!!
我对 .NET 和 Sybase ASE 之间的重叠进行了广泛的研究。 Sybase 在 Oracle 之后 3 年发布了适用于 ASE 的 ADO.NET 2.0 驱动程序。不要指望很快就会有实体框架提供者。
您可以使用 Data Direct,但如果您的利益相关者与我们一样,他们仍然对在 Sybase 最新一轮许可证增加上花费了多少钱感到痛苦。他们不会因为在这样一个过时的产品上投入更多的钱而感到兴奋。
目前可用的两种 ORM 解决方案是 LLBLGen Pro 和 NHibernate。我们的项目已成功使用 NHibernate 来对抗 Sybase 12.5 和 15。它对我们来说效果很好。当前的 Sybase ASE 驱动程序集有点贫乏,但它们工作得很好。我们在需要时对这些驱动程序进行了一些补充。修改驱动程序听起来很困难,但其实也没那么糟糕。
更新:就我们的目的而言,BLToolkit 最终成为比 NHibernate 更好的解决方案。您的里程可能会有所不同。
I have done extensive research on the overlap between .NET and Sybase ASE. Sybase released theirs ADO.NET 2.0 drivers for ASE 3 years after Oracle. Don't expect an Entity Framework provider anytime soon.
You could use Data Direct, but if your stakeholders are anything like ours, they are still sore about how much they spent on the latest round of license increases from Sybase. They aren't going to be excited about putting even more money into such an antiquated product.
The two ORM solutions currently available are LLBLGen Pro and NHibernate. Our project has successfully used NHibernate against Sybase 12.5 and 15. It works quite well for us. The current set of Sybase ASE drivers are a bit anemic, but they work just fine. We have supplemented these drivers a bit when we needed to. Tinkering with the drivers sounds hard, but its not that bad.
Update: For our purposes BLToolkit ended up being a better solution than NHibernate. Your mileage may vary.