diff --git a/src/EFCore.SqlServer/Extensions/SqlServerDbFunctionsExtensions.cs b/src/EFCore.SqlServer/Extensions/SqlServerDbFunctionsExtensions.cs
index a900f30bfe1..f4b672b95d6 100644
--- a/src/EFCore.SqlServer/Extensions/SqlServerDbFunctionsExtensions.cs
+++ b/src/EFCore.SqlServer/Extensions/SqlServerDbFunctionsExtensions.cs
@@ -1126,7 +1126,7 @@ public static TimeSpan TimeFromParts(
/// The DbFunctions instance.
/// The value to be examined for data length.
/// The number of bytes in the input value.
- public static long? DataLength(
+ public static int? DataLength(
[CanBeNull] this DbFunctions _,
[CanBeNull] string arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
@@ -1137,7 +1137,7 @@ public static TimeSpan TimeFromParts(
/// The DbFunctions instance.
/// The value to be examined for data length.
/// The number of bytes in the input value.
- public static long? DataLength(
+ public static int? DataLength(
[CanBeNull] this DbFunctions _,
bool? arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
@@ -1148,7 +1148,7 @@ public static TimeSpan TimeFromParts(
/// The DbFunctions instance.
/// The value to be examined for data length.
/// The number of bytes in the input value.
- public static long? DataLength(
+ public static int? DataLength(
[CanBeNull] this DbFunctions _,
double? arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
@@ -1159,7 +1159,7 @@ public static TimeSpan TimeFromParts(
/// The DbFunctions instance.
/// The value to be examined for data length.
/// The number of bytes in the input value.
- public static long? DataLength(
+ public static int? DataLength(
[CanBeNull] this DbFunctions _,
decimal? arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
@@ -1170,7 +1170,7 @@ public static TimeSpan TimeFromParts(
/// The DbFunctions instance.
/// The value to be examined for data length.
/// The number of bytes in the input value.
- public static long? DataLength(
+ public static int? DataLength(
[CanBeNull] this DbFunctions _,
DateTime? arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
@@ -1181,7 +1181,7 @@ public static TimeSpan TimeFromParts(
/// The DbFunctions instance.
/// The value to be examined for data length.
/// The number of bytes in the input value.
- public static long? DataLength(
+ public static int? DataLength(
[CanBeNull] this DbFunctions _,
TimeSpan? arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
@@ -1192,7 +1192,7 @@ public static TimeSpan TimeFromParts(
/// The DbFunctions instance.
/// The value to be examined for data length.
/// The number of bytes in the input value.
- public static long? DataLength(
+ public static int? DataLength(
[CanBeNull] this DbFunctions _,
DateTimeOffset? arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
@@ -1203,7 +1203,7 @@ public static TimeSpan TimeFromParts(
/// The DbFunctions instance.
/// The value to be examined for data length.
/// The number of bytes in the input value.
- public static long? DataLength(
+ public static int? DataLength(
[CanBeNull] this DbFunctions _,
[CanBeNull] byte[] arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
@@ -1214,7 +1214,7 @@ public static TimeSpan TimeFromParts(
/// The DbFunctions instance.
/// The value to be examined for data length.
/// The number of bytes in the input value.
- public static long? DataLength(
+ public static int? DataLength(
[CanBeNull] this DbFunctions _,
Guid? arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));