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

add virtual keyword to properties #4690

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rominator1983
Copy link

virtual seems to be missing as pointed out in the comments of this answer: https://stackoverflow.com/a/22708800 I also needed that for the migration to work at all.

virtual seems to be missing as pointed out in the comments of this answer: https://stackoverflow.com/a/22708800
I also needed that for the migration to work at all.
@roji
Copy link
Member

roji commented Mar 22, 2024

That comment only seems to say that a DbSet property is needed, not that it must necessarily be virtual. You definitely shouldn't need to make DbSet properties virtual; if you're running into issues, can you please open an issue on the main EF Core repo with a full, runnable code sample?

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

Successfully merging this pull request may close these issues.

None yet

2 participants