开发者

What's the best option for connecting to a database via JDBC using .NET?

I may be looking for the equivalent of the JDBC-ODBC bridge with the inverse behaviour so that an ODBC query, for example, is translated into a correspond开发者_Python百科ing JDBC query. Does such a thing even exist?

There are several hundred JDBC connection strings that require validation and I need to be able to execute queries using these connection strings. I cannot replace them because other applications depend on them.

What are the options in this unenviable space?


I would just query the db directly using the ADO.NET technology of your choice (ADO.NET itself, Entity Framework, NHibernate, whatever). Why do you need to talk to JDBC at all?

UPDATE

It's not ideal, but you could create your data access layer in J# (Java eq. in .NET, but it's not been maintained through current framework version).

You could also try IKVM (http://www.ikvm.net/)

I don't know of any other options that are easy.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜