언어

SqlServerDbFunctionsExtensions.DateTimeFromParts 메서드

정의

구조체의 DateTime 새 인스턴스를 지정된 연도, 월, 일, 시간, 분, 초 및 밀리초로 초기화합니다. SQL Server DATETIMEFROMPARTS(year, month, day, hour, minute, second, millisecond)해당합니다.

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

매개 변수

_
DbFunctions

DbFunctions 인스턴스입니다.

year
Int32

연도(1753~9999).

month
Int32

월(1~12)입니다.

day
Int32

일(1부터 월의 일 수까지)입니다.

hour
Int32

시간(0~23)입니다.

minute
Int32

분(0~59)입니다.

second
Int32

초(0~59)입니다.

millisecond
Int32

밀리초(0~999)입니다.

반품

구조체의 DateTime 새 인스턴스를 지정된 연도, 월, 일, 시간, 분, 초 및 밀리초로 설정합니다.

설명

자세한 내용 및 예제는 데이터베이스 함수 및 EF Core를 사용하여 SQL Server 및 Azure SQL 데이터베이스에 액세스하는 것을 참조하세요.

적용 대상