-
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
Reverse engineering: Navigation properties should not be virtual by default #6326
Comments
Triage: we shouldn't be generating virtual properties by default. |
When you'll add Lazy load, will we need to change everything to |
@gdoron It depends on how lazy loading ends up being implemented. If we did it by generating proxy types at runtime then yes, very likely virtual would be needed to override the property getter. But there are other ways lazy loading could be implemented that wouldn't require it. It is possible that we will revisit this decision once we know how lazy loading will look like, but when we discussed this today we thought that making the change for 1.1 help us reduce the impact of changing the behavior later, e.g. if at some point we decided to lazy load by default, it won't affect as much existing code. |
@divega - Should we remove virtual here? |
@smitpatel I think so. Mostly because
|
Reverse engineer generates
virtual
collection and reference navigation properties.Given that we don't generate proxy types, should these be virtual?
The text was updated successfully, but these errors were encountered: