SqlFunctions.CurrentTimestamp 方法

定义

返回当前日期和时间。

public:
 static Nullable<DateTime> CurrentTimestamp();
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "CURRENT_TIMESTAMP")]
public static DateTime? CurrentTimestamp ();
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "CURRENT_TIMESTAMP")>]
static member CurrentTimestamp : unit -> Nullable<DateTime>
Public Shared Function CurrentTimestamp () As Nullable(Of DateTime)

返回

当前日期和时间。

属性

注解

不能直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。

此函数将转换为数据库中的相应函数。 有关相应 SQL Server 函数的信息,请参阅 CURRENT_TIMESTAMP (Transact-SQL)

适用于