【问题标题】:How to change schema name on runtime for EntityManager如何在 EntityManager 的运行时更改架构名称
【发布时间】:2016-02-18 03:13:01
【问题描述】:

我们的应用程序连接到 oracle。 它应该在运行时更改模式名称,否则会导致异常连接到不同的模式。 当前的解决方案是在发布前删除 edmx 文件中的 Schema="XXX"。 你有更好的主意吗?

【问题讨论】:

    标签: entity-framework-6 devforce


    【解决方案1】:

    DevForce 本身不提供任何东西来在运行时更改架构。尽管我没有尝试过,但您也许可以实现 EF IDbConnectionInterceptor 来执行此操作。查看此接口的文档,以及其他人在 EF 中使用的一些旧技巧,以在运行时更改 Oracle 架构。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-11
      • 2012-06-03
      • 1970-01-01
      相关资源
      最近更新 更多