EntityFunctions.CreateDateTime Metoda

Definice

Vyvolá kanonickou CreateDateTime funkci. Informace o kanonické CreateDateTime funkci naleznete v tématu Funkce kanonické a čas.

public:
 static Nullable<DateTime> CreateDateTime(Nullable<int> year, Nullable<int> month, Nullable<int> day, Nullable<int> hour, Nullable<int> minute, Nullable<double> second);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "CreateDateTime")]
public static DateTime? CreateDateTime(int? year, int? month, int? day, int? hour, int? minute, double? second);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "CreateDateTime")>]
static member CreateDateTime : Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<double> -> Nullable<DateTime>
Public Shared Function CreateDateTime (year As Nullable(Of Integer), month As Nullable(Of Integer), day As Nullable(Of Integer), hour As Nullable(Of Integer), minute As Nullable(Of Integer), second As Nullable(Of Double)) As Nullable(Of DateTime)

Parametry

year
Nullable<Int32>

Část roku nového data.

month
Nullable<Int32>

Část měsíce nového data.

day
Nullable<Int32>

Část dne nového data.

hour
Nullable<Int32>

Hodinová část nového data.

minute
Nullable<Int32>

Minuta nového data.

second
Nullable<Double>

Část sekund nového data. Všimněte si, že pomocí tohoto parametru můžete zadat zlomky sekundy.

Návraty

Nové datum.

Atributy

Poznámky

Tuto funkci nelze volat přímo. Tato funkce se může zobrazit pouze v dotazu LINQ to Entities.

Tato funkce se přeloží na odpovídající funkci v databázi.

Platí pro