EntityFunctions.TruncateTime Método
Definição
Invoca a função TruncateTime canônica.Invokes the canonical TruncateTime function. Para obter informações sobre a função TruncateTime canônica, consulte Funções canônicas de data e hora.For information about the canonical TruncateTime function, see Date and Time Canonical Functions.
Sobrecargas
| TruncateTime(Nullable<DateTime>) |
Invoca a função |
| TruncateTime(Nullable<DateTimeOffset>) |
Invoca a função |
Comentários
Você não pode chamar essa função diretamente.You cannot call this function directly. Essa função só pode aparecer dentro de uma consulta LINQ to Entities.This function can only appear within a LINQ to Entities query.
Essa função é convertida em uma função correspondente no banco de dados.This function is translated to a corresponding function in the database.
TruncateTime(Nullable<DateTime>)
Invoca a função TruncateTime canônica.Invokes the canonical TruncateTime function. Para obter informações sobre a função TruncateTime canônica, consulte Funções canônicas de data e hora.For information about the canonical TruncateTime function, see Date and Time Canonical Functions.
public:
static Nullable<DateTime> TruncateTime(Nullable<DateTime> dateValue);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "TruncateTime")]
public static DateTime? TruncateTime (DateTime? dateValue);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "TruncateTime")>]
static member TruncateTime : Nullable<DateTime> -> Nullable<DateTime>
Public Shared Function TruncateTime (dateValue As Nullable(Of DateTime)) As Nullable(Of DateTime)
Parâmetros
Retornos
A data de entrada com a parte de hora limpa.The input date with the time portion cleared.
- Atributos
Comentários
Você não pode chamar essa função diretamente.You cannot call this function directly. Essa função só pode aparecer dentro de uma consulta LINQ to Entities.This function can only appear within a LINQ to Entities query.
Essa função é convertida em uma função correspondente no banco de dados.This function is translated to a corresponding function in the database.
Aplica-se a
TruncateTime(Nullable<DateTimeOffset>)
Invoca a função TruncateTime canônica.Invokes the canonical TruncateTime function. Para obter informações sobre a função TruncateTime canônica, consulte Funções canônicas de data e hora.For information about the canonical TruncateTime function, see Date and Time Canonical Functions.
public:
static Nullable<DateTimeOffset> TruncateTime(Nullable<DateTimeOffset> dateValue);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "TruncateTime")]
public static DateTimeOffset? TruncateTime (DateTimeOffset? dateValue);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "TruncateTime")>]
static member TruncateTime : Nullable<DateTimeOffset> -> Nullable<DateTimeOffset>
Public Shared Function TruncateTime (dateValue As Nullable(Of DateTimeOffset)) As Nullable(Of DateTimeOffset)
Parâmetros
- dateValue
- Nullable<DateTimeOffset>
O deslocamento de data e hora a ser truncado.The date time offset to truncate.
Retornos
A data de entrada com a parte de hora limpa.The input date with the time portion cleared.
- Atributos
Comentários
Você não pode chamar essa função diretamente.You cannot call this function directly. Essa função só pode aparecer dentro de uma consulta LINQ to Entities.This function can only appear within a LINQ to Entities query.
Essa função é convertida em uma função correspondente no banco de dados.This function is translated to a corresponding function in the database.