Jazyk

SqlServerDbFunctionsExtensions.IsDate(DbFunctions, String) Metoda

Definice

Ověřte, jestli je daný řetězec platným datem. Odpovídá 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

Parametry

_
DbFunctions

Instance DbFunctions.

expression
String

Výraz k ověření

Návraty

true pro platné datum a false jinak.

Poznámky

Další informace a příklady najdete v tématu Databázové funkce a přístup k databázím SQL Server a Azure SQL s EF Core.

Platí pro