Skip to content

Do not merge: ModelContainer memory leak review #1470

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

Closed
wants to merge 2 commits into from

Conversation

AlanWong-MS
Copy link
Contributor

Original PR: #1462
Issue #1101

@AlanWong-MS
Copy link
Contributor Author

@AlanWong-MS
Copy link
Contributor Author

Other things to try:

  • Re-explore ATTEMPT 1 and figure out how to get the Model to not be written to the Expression used for executing the query but get it to write to the SelectExpandWrapper
  • Add ref counting to the ModelIDs. Increment the count as SelectExpandWrapper is created and decrement in a Dispose() method for the SelectExpandWrapper.

// Exception:
// NotSupportedException: Unable to create a constant value of type 'Microsoft.OData.Edm.EdmModel'. Only primitive types or enumeration types are supported in this context.
//
// Sample E2E test that fails: NestedTopSkipOrderByInDollarExpandWorksWithEF
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DerivedAutoExpandNavigationPropertyTest fails and goes through the EnableQueryAttribute.cs

@AlanWong-MS
Copy link
Contributor Author

Closing in favor of #1506.

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.

1 participant