Share via


SqlServerDbFunctionsExtensions.IsNumeric(DbFunctions, String) Method

Definition

Validate if the given string is a valid numeric. Corresponds to the SQL Server ISNUMERIC(expression).

public static bool IsNumeric (this Microsoft.EntityFrameworkCore.DbFunctions _, string expression);
static member IsNumeric : Microsoft.EntityFrameworkCore.DbFunctions * string -> bool
<Extension()>
Public Function IsNumeric (_ As DbFunctions, expression As String) As Boolean

Parameters

_
DbFunctions

The DbFunctions instance.

expression
String

Expression to validate

Returns

true for a valid numeric, otherwise false.

Remarks

See Database functions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.

Applies to