From 81a6f56cc59d625c27a17ba07acd953876e81d32 Mon Sep 17 00:00:00 2001 From: Smit Patel Date: Thu, 6 Feb 2020 16:41:51 -0800 Subject: [PATCH] Query: Remove applying default type mapping Resolves #19567 Non-issue --- .../Query/Internal/StringMethodTranslator.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/EFCore.Cosmos/Query/Internal/StringMethodTranslator.cs b/src/EFCore.Cosmos/Query/Internal/StringMethodTranslator.cs index 55322524dbb..ea52ddae96d 100644 --- a/src/EFCore.Cosmos/Query/Internal/StringMethodTranslator.cs +++ b/src/EFCore.Cosmos/Query/Internal/StringMethodTranslator.cs @@ -69,13 +69,6 @@ public virtual SqlExpression Translate(SqlExpression instance, MethodInfo method } private SqlExpression TranslateSystemFunction(string function, SqlExpression instance, SqlExpression pattern, Type returnType) - { - Check.NotNull(instance, nameof(instance)); - return _sqlExpressionFactory.ApplyDefaultTypeMapping( - _sqlExpressionFactory.Function( - function, - new[] { instance, pattern }, - returnType)); - } + => _sqlExpressionFactory.Function(function, new[] { instance, pattern }, returnType); } }