SqlServerDbFunctionsExtensions.IsNumeric(DbFunctions, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
驗證給定字串是否為有效數值。
對應於 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 執行個體。
- expression
- String
表達式驗證
傳回
true 對於有效的數值,否則 false為 。
備註
更多資訊與範例請參閱「資料庫函數」及「使用 EF Core 存取 SQL Server 與 Azure SQL 資料庫」。