CLR 汇编 C# DBMS

发布于 2024-11-15 20:20:43 字数 100 浏览 9 评论 0原文

是否可以在其他 DBMS 中进行 SQL 的 CLR 汇编? 或者 DBMS Oracle、MySQL、PostgreSQL 中的 CLR 类似物是什么...

Is it possible to do SQL's CLR assembly in other DBMS?
or what would be the CLR analog in DBMS Oracle, MySQL, PostgreSQL...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

只怪假的太真实 2024-11-22 20:20:43

你不能直接在Oracle数据库中使用你在SQL Server数据库中注册的CLR类型(我猜对于MySql和其他数据库也是如此)。每个支持用户定义数据类型并具有 .NET 提供程序的数据库通常都有一个框架来表示 CLR 世界中的 UDT。

例如,在 Oracle 中,您需要实现“Oracle.DataAcess.Types.IOracleCustomType”接口,以便能够在 UDT 和 CLR 类型之间进行转换,并需要实现“IOracleCustomTypeFactory”来创建 custorm 类型的实例。您可以在此处找到更多信息。

You cannot use the CLR type you register in SQL server database directly in an Oracle database (and I guess the same holds true for MySql and other databases). Each database that supports User defined datatypes and has a .NET provider usually has a framework in place for representing the UDT in the the CLR world.

For example, in Oracle you need to implement the 'Oracle.DataAcess.Types.IOracleCustomType' interface to be able to convert between the UDT and CLR type and the 'IOracleCustomTypeFactory' to create instances of the custorm type. You can find more information here.

盛夏已如深秋| 2024-11-22 20:20:43

您不能只让 DBMS 使用 .NET CLR,但如果 DBMS 支持通过标准入口点调用任意代码的方法,那么您可以创建一个桥。例如,Oracle 有OCI(Oracle 调用接口) 您可以使用它来桥接 .NET 程序集。

You couldn't just make a DBMS use the .NET CLR but if the DBMS supports a way to call arbitrary code via standard entry points then you can create a bridge. Oracle for example has the OCI (Oracle Call Interface) that you could use to bridge to .NET assemblies.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文