使用 Oracle.EntityFrameworkCore 的 NServicebus Saga

发布于 2025-01-09 10:52:40 字数 260 浏览 3 评论 0原文

我想知道是否可以将 Oracle.EntityFrameworkCore 与 NServicebus 7.6 一起使用? 我正在使用运行 NSB 7.6 的托管 .NET 6 服务。 数据访问正在使用 Oracle.EntityFrameworkCore

文档 看来您必须使用 NHibernate 或“旧”NET 4.x

I would like to know if it's possible to use Oracle.EntityFrameworkCore with NServicebus 7.6?
I am using hosted .NET 6 service running NSB 7.6.
Data access are using Oracle.EntityFrameworkCore

From the documentation it looks like you have to use NHibernate or "old" NET 4.x

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

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

发布评论

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

评论(1

怎会甘心 2025-01-16 10:52:40

一个使用 Entity Framework Core 的示例,就像 Martin Anderson 提到的,您可以与 SQL 一起使用Oracle 的持久化并共享连接。正如文档中提到的:

为了保持一致性,业务数据必须重用与 NServiceBus 持久性相同的连接上下文。通过 SQL 持久性,这是通过在 NServiceBus 和实体框架中使用相同的 ADO.NET 连接和事务对象来实现的。

There's a sample for using Entity Framework Core and like Martin Anderson mentioned, you can use it together with SQL Persistence for Oracle and share the connection. As the documentation mentions:

To maintain consistency, the business data has to reuse the same connection context as NServiceBus persistence. With SQL persistence, this is achieved by using the same ADO.NET connection and transaction objects in both NServiceBus and Entity Framework.

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