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

Skip entity that should not have its own table in migrations #3436

Closed
poke opened this issue Oct 15, 2015 · 1 comment
Closed

Skip entity that should not have its own table in migrations #3436

poke opened this issue Oct 15, 2015 · 1 comment

Comments

@poke
Copy link

poke commented Oct 15, 2015

Hey, in order to consume stored procedures, as per #1864, I created a new entity type just to match the return type of the stored procedure. Since that entity does not reflect an actual table, I would like it to be mostly ignored by the database context though. I especially don’t want to create migrations for the entity that would result in creating a new table.

Is there any way to only register entities in a database context so that I can use them for mapping stored procedure results but ignore them for everything else?

Of course I can manually handle this for the time being by just removing the table completely from the generated migrations, but I would rather register the entity type properly in the first place. I’m aware that as per #245, support for stored procedures isn’t completed yet.

@rowanmiller
Copy link
Contributor

Dupe of #2725 - we agree it would be useful 😄

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
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

3 participants