-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Hi,
is it on purpose that dbFunction.TypeMapping is not passed in into these calls, but the default null is used?
efcore/src/EFCore.Relational/Query/RelationalMethodCallTranslatorProvider.cs
Lines 78 to 91 in f8585c2
| return dbFunction.IsBuiltIn | |
| ? _sqlExpressionFactory.Function( | |
| dbFunction.Name, | |
| arguments, | |
| dbFunction.IsNullable, | |
| argumentsPropagateNullability, | |
| method.ReturnType.UnwrapNullableType()) | |
| : _sqlExpressionFactory.Function( | |
| dbFunction.Schema, | |
| dbFunction.Name, | |
| arguments, | |
| dbFunction.IsNullable, | |
| argumentsPropagateNullability, | |
| method.ReturnType.UnwrapNullableType()); |
We have some SQL function returning string[], and have to use HasDbFunction with a more complex HasTranslation instead of the simple fluent API, presumably because of this.