-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: