언어

SqlServerDbFunctionsExtensions.SmallDateTimeFromParts 메서드

정의

구조체의 DateTime 새 인스턴스를 지정된 연도, 월, 일, 시간 및 분으로 초기화합니다. 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

매개 변수

_
DbFunctions

DbFunctions 인스턴스입니다.

year
Int32

연도(1753~9999).

month
Int32

월(1~12)입니다.

day
Int32

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

hour
Int32

시간(0~23)입니다.

minute
Int32

분(0~59)입니다.

반품

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

설명

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

적용 대상