SqlServerDbFunctionsExtensions.IsNumeric(DbFunctions, String) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The DbFunctions instance.
- expression
- String
Expression to validate
true
for a valid numeric, otherwise false
.
See Database functions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Product | Versions |
---|---|
Entity Framework Core | 6.0, 7.0, 8.0, 9.0 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: