在postgresql的ConnectionsTring中,在哪里可以提及模式名称?

发布于 2025-02-03 16:30:57 字数 400 浏览 4 评论 0原文

Jhi_configure数据库的PostgreSQL中有多个模式,我想连接到我的configurator架构并运行我的代码第一次迁移。每当我运行迁移时,默认情况下它将在public架构中创建表。如何在我的ConnectionsTring中提供Configurator架构名称。我的ConnectionsTring是:

    "ConnectionStrings": {
       "DefaultConnection": "Server=localhost;Database=JHI_Configure; Port:5432; User ID=sa; Password=test1;Trusted_Connection=True;"
},

There are multiple schemas in PostgreSQl of JHI_Configure database and i want to connect to my Configurator Schema and run my code first migration. Whenever i run my migration, by default it is creating tables in Public schema. How to provide the Configurator schema name in my connectionstring. My connectionstring is :

    "ConnectionStrings": {
       "DefaultConnection": "Server=localhost;Database=JHI_Configure; Port:5432; User ID=sa; Password=test1;Trusted_Connection=True;"
},

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文