SqlServerDbFunctionsExtensions.IsDate(DbFunctions, String) Method
Definition
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 date.
Corresponds to SQL Server's 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
Parameters
The DbFunctions instance.
- expression
- String
Expression to validate
Returns
true for valid date and false otherwise.
Remarks
See Database functions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework