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

Robust ordering on key properties #19644

Merged
merged 1 commit into from
Jan 26, 2020
Merged

Conversation

ajcvickers
Copy link
Member

Fixes #13507
Fixes #19638

See also #19641

Basic logic is:

  • If model type implements some sort of IComparable, then use it
  • Otherwise, if provider type implement some sore of IComparable, then use it
  • Otherwise fail in model validation

Also added new test suite specifically for different types of keys with and without conversions.

@AndriySvyryd
Copy link
Member

Filed #19650 in case you want to tackle it too

Fixes #13507
Fixes #19638

See also #19641

Basic logic is:
* If model type implements some sort of IComparable, then use it
* Otherwise, if provider type implement some sore of IComparable, then use it
* Otherwise fail in model validation

Also added new test suite specifically for different types of keys with and without conversions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants