Skip to content

RelationalMethodCallTranslatorProvider and explicit typeMapping #27524

@mm3141

Description

@mm3141

Hi,
is it on purpose that dbFunction.TypeMapping is not passed in into these calls, but the default null is used?

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.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions