Share via


SqlServerDbFunctionsExtensions.IsDate(DbFunctions, String) メソッド

定義

指定された文字列が有効な日付であるかどうかを検証します。 SQL Server の ISDATE('date')に対応します。

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

パラメーター

_
DbFunctions

DbFunctions のインスタンスです。

expression
String

検証する式

戻り値

有効な日付の場合は true、それ以外の場合は false。

注釈

詳細と例については、「データベース関数」および「EF Core を使用したデータベースのSQL ServerとAzure SQLへのアクセス」を参照してください。

適用対象