DbFunctions: Consider protected methods for discovering DbFunctionAttribute #9956
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
good first issue
This issue should be relatively straightforward to fix.
help wanted
This issue involves technologies where we are not experts. Expert help would be appreciated.
type-bug
Milestone
At present we have set of BindingFlags to discover methods for UDFs, they explicitly ignores protected methods. But the attribute based discovery should be done regardless of protection level.
The protection level restricts user's ability to use the method inside of the EF Query but if in some way user can use it then we should translate it.
One way to use the method is to pass in IQueryable to public method in DbContext which would apply logics from protected/private methods by calling them and return it. (or there is always reflection)
The text was updated successfully, but these errors were encountered: