Sdílet prostřednictvím


SqlServerDbFunctionsExtensions.SmallDateTimeFromParts Metoda

Definice

Inicializuje novou instanci DateTime struktury na zadaný rok, měsíc, den, hodinu a minutu. Odpovídá SQL Server SMALLDATETIMEFROMPARTS(year, month, day, hour, minute).

public static DateTime SmallDateTimeFromParts (this Microsoft.EntityFrameworkCore.DbFunctions _, int year, int month, int day, int hour, int minute);
static member SmallDateTimeFromParts : Microsoft.EntityFrameworkCore.DbFunctions * int * int * int * int * int -> DateTime
<Extension()>
Public Function SmallDateTimeFromParts (_ As DbFunctions, year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer) As DateTime

Parametry

_
DbFunctions

Instance DbFunctions.

year
Int32

Rok (1753 až 9999).

month
Int32

Měsíc (1 až 12).

day
Int32

Den (1 až počet dnů v měsíci)

hour
Int32

Hodiny (0 až 23).

minute
Int32

Minuty (0 až 59).

Návraty

Nová instance DateTime struktury pro zadaný rok, měsíc, den, hodinu a minutu.

Poznámky

Další informace a příklady najdete v tématech Databázové funkcea Přístup k SQL Server a Azure SQL databázím pomocí EF Core.

Platí pro