Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema Not Included in Generated SQL for ToTable Mapping #1928

Open
fangshuaifeng opened this issue Jun 19, 2024 · 0 comments
Open

Schema Not Included in Generated SQL for ToTable Mapping #1928

fangshuaifeng opened this issue Jun 19, 2024 · 0 comments

Comments

@fangshuaifeng
Copy link

Describe the bug
I'm using Pomelo.EntityFrameworkCore.MySql version 6.0.3 and Microsoft.EntityFrameworkCore version 6.0.28. I've configured my entity to use a specific schema with ToTable, but the generated SQL does not include the schema in the table name.

To Reproduce
Here's the relevant part of my configuration:
image

Expected behavior
The generated SQL should include the schema in the table name, like this:
image

Steps to reproduce
Define an entity with ToTable specifying both table and schema.
Generate a query and inspect the resulting SQL.
Additional context

Pomelo.EntityFrameworkCore.MySql version: 6.0.3
Microsoft.EntityFrameworkCore version: 6.0.28
Is there a workaround for this issue or something I'm missing in my configuration?

Thank you for your assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant