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 ToFunction overloads that take a MethodInfo #25437

Merged
merged 1 commit into from
Aug 6, 2021
Merged

Conversation

AndriySvyryd
Copy link
Member

  • Add ToView overloads for owned types
  • Add non-generic ToInMemoryQuery overloads

Fixes #24611
Fixes #21418
Fixes #24600

Add ToView overloads for owned types
Add non-generic ToInMemoryQuery overloads

Fixes #24611
Fixes #21418
Fixes #24600
@AndriySvyryd AndriySvyryd requested a review from a team August 5, 2021 19:55
/// <returns> The function configuration builder. </returns>
public static EntityTypeBuilder ToFunction(
this EntityTypeBuilder entityTypeBuilder,
MethodInfo? function)
Copy link
Contributor

Choose a reason for hiding this comment

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

what does null MethodInfo provides? Also it would clash with overload when null value passed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changing it to non-nullable doesn't help to disambiguate null calls, so might as well accept it here.

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