CLR 메서드에서 정식 함수로의 매핑

특정 CLR 메서드는 데이터베이스에서 실행할 수 있는 명령 트리 정식 함수로 변환됩니다. CLR 메서드를 명령 트리 정식 함수에 매핑할 수 없는 경우에는 변환이 발생할 때 예외가 throw됩니다.

System.String 메서드(정적) 매핑

System.String 메서드(정적) 정식 함수

System.String Concat(String str0, String str1)

Concat(str0, str1)

System.String Concat(String str0, String str1, String str2)

Concat(Concat(str0, str1), str2)

System.String Concat(String str0, String str1, String str2, String str03)

Concat(Concat(Concat(str0, str1), str2), str3)

Boolean Equals(String a, String b)

= 연산자

Boolean IsNullOrEmpty(String value)

(IsNull(value)) 또는 Length(value) = 0

Boolean op_Equality(String a, String b)

= 연산자

Boolean op_Inequality(String a , String b)

!= 연산자

Microsoft.VisualBasic.Strings.Trim(String str)

Trim(str)

Microsoft.VisualBasic.Strings.LTrim(String str)

Ltrim(str)

Microsoft.VisualBasic.Strings.RTrim(String str)

Rtrim(str)

Microsoft.VisualBasic.Strings.Len(String expression)

Length(expression)

Microsoft.VisualBasic.Strings.Left(String str, Int32 Length)

Left(str, Length)

Microsoft.VisualBasic.Strings.Mid(String str, Int32 Start, Int32 Length)

Substring(str, Start, Length)

Microsoft.VisualBasic.Strings.Right(String str, Int32 Length)

Right(str, Length)

Microsoft.VisualBasic.Strings.UCase(String Value)

ToUpper(Value)

Microsoft.VisualBasic.Strings.LCase(String Value)

ToLower(Value)

System.String 메서드(인스턴스) 매핑

System.String 메서드(인스턴스) 정식 함수 설명

Boolean Contains(String value)

IndexOf(this, value) > 0

Boolean EndsWith(String value)

Right(this, length(value)) = value

Boolean StartsWith(String value)

IndexOf(this, value) = 1

Int32 get_Length()

Length(this)

Int32 IndexOf(String value)

IndexOf(this, value) - 1

System.String Insert(Int32 startIndex, String value)

Concat(Concat(Substring(this, 1, startIndex), value), Substring(this, startIndex+1, Length(this) - startIndex))

System.String Remove(Int32 startIndex)

Substring(this, 1, startIndex)

System.String Remove(Int32 startIndex, Int32 count)

Concat(Substring(this, 1, startIndex) , Substring(this, startIndex + count +1, Length(this) - (startIndex + count)))

Remove(startIndex, count)는 count가 0 이상의 정수인 경우에만 지원됩니다.

System.String Replace(String oldValue, String newValue)

Replace(this, oldValue, newValue)

System.String Substring(Int32 startIndex)

Substring(this, startIndex +1, Length(this) - startIndex)

System.String Substring(Int32 startIndex, Int32 length)

Substring(this, startIndex +1, length)

System.String ToLower()

ToLower(this)

System.String ToUpper()

ToUpper(this)

System.String Trim()

Trim(this)

System.String TrimEnd(Char[] trimChars)

RTrim(this)

System.String TrimStart(Char[]trimChars)

LTrim(this)

Boolean Equals(String value)

= 연산자

System.DateTime 메서드(정적) 매핑

System.DateTime 메서드(정적) 정식 함수 설명

Boolean Equals(DateTime t1, DateTime t2)

= 연산자

System.DateTime get_Now()

CurrentDateTime()

System.DateTime get_UtcNow()

CurrentUtcDateTime()

Boolean op_Equality(DateTime d1, DateTime d2)

= 연산자

Boolean op_GreaterThan(DateTime t1, DateTime t2)

> 연산자

Boolean op_GreaterThanOrEqual(DateTime t1, DateTime t2)

>= 연산자

Boolean op_Inequality(DateTime t1, DateTime t2)

!= 연산자

Boolean op_LessThan(DateTime t1, DateTime t2)

< 연산자

Boolean op_LessThanOrEqual(DateTime t1, DateTime t2)

<= 연산자

Microsoft.VisualBasic.DateAndTime.DatePart( _

ByVal Interval As DateInterval, _

ByVal DateValue As DateTime, _

Optional ByVal FirstDayOfWeekValue As FirstDayOfWeek = VbSunday, _

Optional ByVal FirstWeekOfYearValue As FirstWeekOfYear = VbFirstJan1 _

) As Integer

자세한 내용은 DatePart 함수 단원을 참조하십시오.

Microsoft.VisualBasic.DateAndTime.Now

CurrentDateTime()

Microsoft.VisualBasic.DateAndTime.Year(DateTime TimeValue)

Year()

Microsoft.VisualBasic.DateAndTime.Month(DateTime TimeValue)

Month()

Microsoft.VisualBasic.DateAndTime.Day(DateTime TimeValue)

Day()

Microsoft.VisualBasic.DateAndTime.Hour(DateTime TimeValue)

Hour()

Microsoft.VisualBasic.DateAndTime.Minute(DateTime TimeValue)

Minute()

Microsoft.VisualBasic.DateAndTime.Second(DateTime TimeValue)

Second()

System.DateTime 메서드(인스턴스) 매핑

System.DateTime 메서드(인스턴스) 정식 함수

Boolean Equals(DateTime value)

= 연산자

Int32 get_Day()

Day(this)

Int32 get_Hour()

Hour(this)

Int32 get_Millisecond()

Millisecond(this)

Int32 get_Minute()

Minute(this)

Int32 get_Month()

Month(this)

Int32 get_Second()

Second(this)

Int32 get_Year()

Year(this)

System.DateTimeOffset 메서드(인스턴스) 매핑

System.DateTimeOffset 메서드(인스턴스) 정식 함수 설명

Int32 get_Day()

Day(this)

SQL Server 2005에 대해서는 지원되지 않습니다.

Int32 get_Hour()

Hour(this)

SQL Server 2005에 대해서는 지원되지 않습니다.

Int32 get_Millisecond()

Millisecond(this)

SQL Server 2005에 대해서는 지원되지 않습니다.

Int32 get_Minute()

Minute(this)

SQL Server 2005에 대해서는 지원되지 않습니다.

Int32 get_Month()

Month(this)

SQL Server 2005에 대해서는 지원되지 않습니다.

Int32 get_Second()

Second(this)

SQL Server 2005에 대해서는 지원되지 않습니다.

Int32 get_Year()

Year(this)

SQL Server 2005에 대해서는 지원되지 않습니다.

System.DateTimeOffset 메서드(정적) 매핑

System.DateTimeOffset 메서드(정적) 정식 함수 설명

System.DateTimeOffset get_Now()

CurrentDateTimeOffset()

SQL Server 2005에 대해서는 지원되지 않습니다.

System.TimeSpan 메서드(인스턴스) 매핑

System.TimeSpan 메서드(인스턴스) 정식 함수 설명

Int32 get_Hours()

Hour(this)

SQL Server 2005에 대해서는 지원되지 않습니다.

Int32 get_Milliseconds()

Millisecond(this)

SQL Server 2005에 대해서는 지원되지 않습니다.

Int32 get_Minutes()

Minute(this)

SQL Server 2005에 대해서는 지원되지 않습니다.

Int32 get_Seconds()

Second(this)

SQL Server 2005에 대해서는 지원되지 않습니다.

DatePart 함수

DatePart 함수는 Interval의 값에 따라 다양한 정식 함수 중 하나에 매핑됩니다. 다음 표에서는 지원되는 Interval 값에 대한 정식 함수 매핑을 보여 줍니다.

간격 값 정식 함수

DateInterval.Year

Year()

DateInterval.Month

Month()

DateInterval.Day

Day()

DateInterval.Hour

Hour()

DateInterval.Minute

Minute()

DateInterval.Second

Second()

수치 연산 함수 매핑

CLR 메서드 정식 함수

System.Decimal.Ceiling(Decimal d)

Ceiling(d)

System.Decimal.Floor(Decimal d)

Floor(d)

System.Decimal.Round(Decimal d)

Round(d)

System.Math.Ceiling(Decimal d)

Ceiling(d)

System.Math.Floor(Decimal d)

Floor(d)

System.Math.Round(Decimal d)

Round(d)

System.Math.Ceiling(Double a)

Ceiling(a)

System.Math.Floor(Double a)

Floor(a)

System.Math.Round(Double a)

Round(a)

비트 연산자 매핑

비트 연산자 부울이 아닌 피연산자에 대한 정식 함수 부울 피연산자에 대한 정식 함수

비트 AND 연산자

BitWiseAnd

op1 AND op2

비트 OR 연산자

BitWiseOr

op1 OR op2

비트 NOT 연산자

BitWiseNot

NOT(op)

비트 XOR 연산자

BitWiseXor

((op1 AND NOT(op2)) OR (NOT(op1) AND op2))

참고 항목

기타 리소스

참조(LINQ to Entities)