Skip to content

Commit

Permalink
Changed long? to int? for DataLength function
Browse files Browse the repository at this point in the history
  • Loading branch information
Marusyk committed Mar 7, 2020
1 parent fb4c2f9 commit 65d95f4
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ public static TimeSpan TimeFromParts(
/// <param name="_">The DbFunctions instance.</param>
/// <param name="arg">The value to be examined for data length.</param>
/// <returns>The number of bytes in the input value.</returns>
public static long? DataLength(
public static int? DataLength(
[CanBeNull] this DbFunctions _,
[CanBeNull] string arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
Expand All @@ -1137,7 +1137,7 @@ public static TimeSpan TimeFromParts(
/// <param name="_">The DbFunctions instance.</param>
/// <param name="arg">The value to be examined for data length.</param>
/// <returns>The number of bytes in the input value.</returns>
public static long? DataLength(
public static int? DataLength(
[CanBeNull] this DbFunctions _,
bool? arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
Expand All @@ -1148,7 +1148,7 @@ public static TimeSpan TimeFromParts(
/// <param name="_">The DbFunctions instance.</param>
/// <param name="arg">The value to be examined for data length.</param>
/// <returns>The number of bytes in the input value.</returns>
public static long? DataLength(
public static int? DataLength(
[CanBeNull] this DbFunctions _,
double? arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
Expand All @@ -1159,7 +1159,7 @@ public static TimeSpan TimeFromParts(
/// <param name="_">The DbFunctions instance.</param>
/// <param name="arg">The value to be examined for data length.</param>
/// <returns>The number of bytes in the input value.</returns>
public static long? DataLength(
public static int? DataLength(
[CanBeNull] this DbFunctions _,
decimal? arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
Expand All @@ -1170,7 +1170,7 @@ public static TimeSpan TimeFromParts(
/// <param name="_">The DbFunctions instance.</param>
/// <param name="arg">The value to be examined for data length.</param>
/// <returns>The number of bytes in the input value.</returns>
public static long? DataLength(
public static int? DataLength(
[CanBeNull] this DbFunctions _,
DateTime? arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
Expand All @@ -1181,7 +1181,7 @@ public static TimeSpan TimeFromParts(
/// <param name="_">The DbFunctions instance.</param>
/// <param name="arg">The value to be examined for data length.</param>
/// <returns>The number of bytes in the input value.</returns>
public static long? DataLength(
public static int? DataLength(
[CanBeNull] this DbFunctions _,
TimeSpan? arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
Expand All @@ -1192,7 +1192,7 @@ public static TimeSpan TimeFromParts(
/// <param name="_">The DbFunctions instance.</param>
/// <param name="arg">The value to be examined for data length.</param>
/// <returns>The number of bytes in the input value.</returns>
public static long? DataLength(
public static int? DataLength(
[CanBeNull] this DbFunctions _,
DateTimeOffset? arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
Expand All @@ -1203,7 +1203,7 @@ public static TimeSpan TimeFromParts(
/// <param name="_">The DbFunctions instance.</param>
/// <param name="arg">The value to be examined for data length.</param>
/// <returns>The number of bytes in the input value.</returns>
public static long? DataLength(
public static int? DataLength(
[CanBeNull] this DbFunctions _,
[CanBeNull] byte[] arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
Expand All @@ -1214,7 +1214,7 @@ public static TimeSpan TimeFromParts(
/// <param name="_">The DbFunctions instance.</param>
/// <param name="arg">The value to be examined for data length.</param>
/// <returns>The number of bytes in the input value.</returns>
public static long? DataLength(
public static int? DataLength(
[CanBeNull] this DbFunctions _,
Guid? arg)
=> throw new InvalidOperationException(SqlServerStrings.FunctionOnClient(nameof(DataLength)));
Expand Down

0 comments on commit 65d95f4

Please sign in to comment.