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

Support non-persisted properties #14121

Open
AndriySvyryd opened this issue Dec 7, 2018 · 5 comments
Open

Support non-persisted properties #14121

AndriySvyryd opened this issue Dec 7, 2018 · 5 comments

Comments

@AndriySvyryd
Copy link
Member

AndriySvyryd commented Dec 7, 2018

Add a way to ignore a property for updates or queries, this is useful when the property value is always computed on the client, see #10768
Cosmos would use this to store the client key for entities in owned collections.

This would replace the relational IReadOnlyProperty.*IsStored methods

It could be configured separetely for different mapping types (Table, View, Sproc, etc.)

@ajcvickers
Copy link
Member

@AndriySvyryd
Copy link
Member Author

@ajcvickers Are you suggesting to add another value, like IgnoreForQueryToo? That would be one way of implementing this.

@ajcvickers
Copy link
Member

@AndriySvyryd Not really suggesting anything, just wondering how close it is to what we need.

@AndriySvyryd
Copy link
Member Author

@ajcvickers PropertySaveBehavior currently only affects the update pipeline, we still need something for query, so I guess it's halfway there.

@AndriySvyryd
Copy link
Member Author

1e6d85e implemented this in Cosmos by allowing to set "PropertyName" to an empty string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants