語言

SqlServerDbFunctionsExtensions.IsNumeric(DbFunctions, String) 方法

定義

驗證給定字串是否為有效數值。 對應於 SQL ServerISNUMERIC(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

參數

_
DbFunctions

DbFunctions 執行個體。

expression
String

表達式驗證

傳回

true 對於有效的數值,否則 false為 。

備註

更多資訊與範例請參閱「資料庫函數」及「使用 EF Core 存取 SQL Server 與 Azure SQL 資料庫」。

適用於