DbFunctions 類別

定義

提供 CLR 方法,可在LINQ to Entities查詢中使用時轉譯為資料庫函式。 這個類別上的方法可透過 存取 Functions

public class DbFunctions
public sealed class DbFunctions
type DbFunctions = class
Public Class DbFunctions
Public NotInheritable Class DbFunctions
繼承
DbFunctions

備註

如需詳細資訊和範例,請參閱 資料庫函 式。

擴充方法

Like(DbFunctions, String, String)

SQL LIKE 作業的實作。 在關係資料庫上,這通常直接轉譯為 SQL。

Like(DbFunctions, String, String, String)

SQL LIKE 作業的實作。 在關係資料庫上,這通常直接轉譯為 SQL。

Random(DbFunctions)

隨機雙數產生器,產生介於 0 到 1 之間的數位,獨佔。

Collate<TProperty>(DbFunctions, TProperty, String)

明確指定要用於 LINQ 查詢的定序。 可用來產生片段,例如 WHERE customer.name COLLATE 'de_DE' = 'John Doe'

Glob(DbFunctions, String, String)

對應至 SQLite glob 函式,類似于 , Like(DbFunctions, String, String) 但會改用檔案系統萬用字元語法。

Hex(DbFunctions, Byte[])

對應至 SQLite hex 函式,此函式會傳回代表指定值的十六進位字串。

Substr(DbFunctions, Byte[], Int32)

對應至 SQLite substr 函式,此函式會傳回指定值的子陣列。 子陣列會從 開始 startIndex ,並繼續到值的結尾。

Substr(DbFunctions, Byte[], Int32, Int32)

對應至 SQLite 子字串函式,此函式會傳回指定值的子陣列。 子陣列從 開始 startIndex ,並具有指定的 length

Unhex(DbFunctions, String)

對應至 SQLite unhex 函式,此函式會傳回代表十六進位字串解碼的 BLOB。

Unhex(DbFunctions, String, String)

對應至 SQLite unhex 函式,此函式會傳回代表十六進位字串解碼的 BLOB。

AtTimeZone(DbFunctions, DateTime, String)

dateTime轉換為目標 timeZone 中的對應 datetimeoffset 。 對應至SQL Server AT TIME ZONE 建構。

AtTimeZone(DbFunctions, DateTimeOffset, String)

dateTimeOffset轉換為 所 timeZone 指定的時區。 對應至SQL Server AT TIME ZONE 建構。

Contains(DbFunctions, Object, String)

可在 LINQ 查詢中使用的 DbFunction 方法存根,以SQL Server CONTAINS 存放區函式為目標。

Contains(DbFunctions, Object, String, Int32)

可在 LINQ 查詢中使用的 DbFunction 方法存根,以SQL Server CONTAINS 存放區函式為目標。

Contains(DbFunctions, String, String)

可在 LINQ 查詢中使用的 DbFunction 方法存根,以SQL Server CONTAINS 存放區函式為目標。

Contains(DbFunctions, String, String, Int32)

可在 LINQ 查詢中使用的 DbFunction 方法存根,以SQL Server CONTAINS 存放區函式為目標。

DataLength(DbFunctions, Byte[])

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, Nullable<Boolean>)

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, Nullable<DateTime>)

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, Nullable<DateTimeOffset>)

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, Nullable<Decimal>)

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, Nullable<Double>)

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, Nullable<Guid>)

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, Nullable<TimeSpan>)

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, String)

傳回用來代表任何運算式的位元組數目。

DateDiffDay(DbFunctions, DateOnly, DateOnly)

計算 在 和 endDate 之間 startDate 跨越的日期界限數目。 對應至SQL Server 的 DATEDIFF(day, @startDate, @endDate)

DateDiffDay(DbFunctions, DateTime, DateTime)

計算 在 和 endDate 之間 startDate 跨越的日期界限數目。 對應至SQL Server 的 DATEDIFF(day, @startDate, @endDate)

DateDiffDay(DbFunctions, DateTimeOffset, DateTimeOffset)

計算 在 和 endDate 之間 startDate 跨越的日期界限數目。 對應至SQL Server 的 DATEDIFF(day, @startDate, @endDate)

DateDiffDay(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>)

計算 在 和 endDate 之間 startDate 跨越的日期界限數目。 對應至SQL Server 的 DATEDIFF(day, @startDate, @endDate)

DateDiffDay(DbFunctions, Nullable<DateTime>, Nullable<DateTime>)

計算 在 和 endDate 之間 startDate 跨越的日期界限數目。 對應至SQL Server 的 DATEDIFF(day, @startDate, @endDate)

DateDiffDay(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

計算 在 和 endDate 之間 startDate 跨越的日期界限數目。 對應至SQL Server 的 DATEDIFF(day, @startDate, @endDate)

DateDiffHour(DbFunctions, DateOnly, DateOnly)

計算 在 和 endDate 之間 startDate 跨越的小時界限數目。 對應至SQL Server 的 DATEDIFF(hour, @startDate, @endDate)

DateDiffHour(DbFunctions, DateTime, DateTime)

計算 在 和 endDate 之間 startDate 跨越的小時界限數目。 對應至SQL Server 的 DATEDIFF(hour, @startDate, @endDate)

DateDiffHour(DbFunctions, DateTimeOffset, DateTimeOffset)

計算 在 和 endDate 之間 startDate 跨越的小時界限數目。 對應至SQL Server 的 DATEDIFF(hour, @startDate, @endDate)

DateDiffHour(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>)

計算 在 和 endDate 之間 startDate 跨越的小時界限數目。 對應至SQL Server 的 DATEDIFF(hour, @startDate, @endDate)

DateDiffHour(DbFunctions, Nullable<DateTime>, Nullable<DateTime>)

計算 在 和 endDate 之間 startDate 跨越的小時界限數目。 對應至SQL Server 的 DATEDIFF(hour, @startDate, @endDate)

DateDiffHour(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

計算 在 和 endDate 之間 startDate 跨越的小時界限數目。 對應至SQL Server 的 DATEDIFF(hour, @startDate, @endDate)

DateDiffHour(DbFunctions, Nullable<TimeOnly>, Nullable<TimeOnly>)

計算 在 和 endTime 之間 startTime 跨越的小時界限數目。 對應至SQL Server 的 DATEDIFF(hour, @startTime, @endTime)

DateDiffHour(DbFunctions, Nullable<TimeSpan>, Nullable<TimeSpan>)

計算 在 和 endTimeSpan 之間 startTimeSpan 跨越的小時界限數目。 對應至SQL Server 的 DATEDIFF(hour, @startTimeSpan, @endTimeSpan)

DateDiffHour(DbFunctions, TimeOnly, TimeOnly)

計算 在 和 endTime 之間 startTime 跨越的小時界限數目。 對應至SQL Server 的 DATEDIFF(hour, @startTime, @endTime)

DateDiffHour(DbFunctions, TimeSpan, TimeSpan)

計算 在 和 endTimeSpan 之間 startTimeSpan 跨越的小時界限數目。 對應至SQL Server 的 DATEDIFF(hour, @startTimeSpan, @endTimeSpan)

DateDiffMicrosecond(DbFunctions, DateOnly, DateOnly)

計算 在 和 endDate 之間 startDate 跨越的微秒界限數目。 對應至SQL Server 的 DATEDIFF(microsecond, @startDate, @endDate)

DateDiffMicrosecond(DbFunctions, DateTime, DateTime)

計算 在 和 endDate 之間 startDate 跨越的微秒界限數目。 對應至SQL Server 的 DATEDIFF(microsecond, @startDate, @endDate)

DateDiffMicrosecond(DbFunctions, DateTimeOffset, DateTimeOffset)

計算 在 和 endDate 之間 startDate 跨越的微秒界限數目。 對應至SQL Server 的 DATEDIFF(microsecond, @startDate, @endDate)

DateDiffMicrosecond(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>)

計算 在 和 endDate 之間 startDate 跨越的微秒界限數目。 對應至SQL Server 的 DATEDIFF(microsecond, @startDate, @endDate)

DateDiffMicrosecond(DbFunctions, Nullable<DateTime>, Nullable<DateTime>)

計算 在 和 endDate 之間 startDate 跨越的微秒界限數目。 對應至SQL Server 的 DATEDIFF(microsecond, @startDate, @endDate)

DateDiffMicrosecond(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

計算 在 和 endDate 之間 startDate 跨越的微秒界限數目。 對應至SQL Server 的 DATEDIFF(microsecond, @startDate, @endDate)

DateDiffMicrosecond(DbFunctions, Nullable<TimeOnly>, Nullable<TimeOnly>)

計算 在 和 endTime 之間 startTime 跨越的微秒界限數目。 對應至SQL Server 的 DATEDIFF(microsecond, @startTime, @endTime)

DateDiffMicrosecond(DbFunctions, Nullable<TimeSpan>, Nullable<TimeSpan>)

計算 在 和 endTimeSpan 之間 startTimeSpan 跨越的微秒界限數目。 對應至SQL Server 的 DATEDIFF(microsecond, @startTimeSpan, @endTimeSpan)

DateDiffMicrosecond(DbFunctions, TimeOnly, TimeOnly)

計算 在 和 endTime 之間 startTime 跨越的微秒界限數目。 對應至SQL Server 的 DATEDIFF(microsecond, @startTime, @endTime)

DateDiffMicrosecond(DbFunctions, TimeSpan, TimeSpan)

計算 在 和 endTimeSpan 之間 startTimeSpan 跨越的微秒界限數目。 對應至SQL Server 的 DATEDIFF(microsecond, @startTimeSpan, @endTimeSpan)

DateDiffMillisecond(DbFunctions, DateOnly, DateOnly)

計算 在 和 endDate 之間 startDate 跨越的毫秒界限數目。 對應至SQL Server 的 DATEDIFF(millisecond, @startDate, @endDate)

DateDiffMillisecond(DbFunctions, DateTime, DateTime)

計算 在 和 endDate 之間 startDate 跨越的毫秒界限數目。 對應至SQL Server 的 DATEDIFF(millisecond, @startDate, @endDate)

DateDiffMillisecond(DbFunctions, DateTimeOffset, DateTimeOffset)

計算 在 和 endDate 之間 startDate 跨越的毫秒界限數目。 對應至SQL Server 的 DATEDIFF(millisecond, @startDate, @endDate)

DateDiffMillisecond(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>)

計算 在 和 endDate 之間 startDate 跨越的毫秒界限數目。 對應至SQL Server 的 DATEDIFF(millisecond, @startDate, @endDate)

DateDiffMillisecond(DbFunctions, Nullable<DateTime>, Nullable<DateTime>)

計算 在 和 endDate 之間 startDate 跨越的毫秒界限數目。 對應至SQL Server 的 DATEDIFF(millisecond, @startDate, @endDate)

DateDiffMillisecond(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

計算 在 和 endDate 之間 startDate 跨越的毫秒界限數目。 對應至SQL Server 的 DATEDIFF(millisecond, @startDate, @endDate)

DateDiffMillisecond(DbFunctions, Nullable<TimeOnly>, Nullable<TimeOnly>)

計算 在 和 endTime 之間 startTime 跨越的毫秒界限數目。 對應至SQL Server 的 DATEDIFF(millisecond, @startTime, @endTime)

DateDiffMillisecond(DbFunctions, Nullable<TimeSpan>, Nullable<TimeSpan>)

計算 在 和 endTimeSpan 之間 startTimeSpan 跨越的毫秒界限數目。 對應至SQL Server 的 DATEDIFF(millisecond, @startTimeSpan, @endTimeSpan)

DateDiffMillisecond(DbFunctions, TimeOnly, TimeOnly)

計算 在 和 endTime 之間 startTime 跨越的毫秒界限數目。 對應至SQL Server 的 DATEDIFF(millisecond, @startTime, @endTime)

DateDiffMillisecond(DbFunctions, TimeSpan, TimeSpan)

計算 在 和 endTimeSpan 之間 startTimeSpan 跨越的毫秒界限數目。 對應至SQL Server 的 DATEDIFF(millisecond, @startTimeSpan, @endTimeSpan)

DateDiffMinute(DbFunctions, DateOnly, DateOnly)

計算 在 和 endDate 之間 startDate 跨越的分鐘界限數目。 對應至SQL Server 的 DATEDIFF(minute, @startDate, @endDate)

DateDiffMinute(DbFunctions, DateTime, DateTime)

計算 在 和 endDate 之間 startDate 跨越的分鐘界限數目。 對應至SQL Server 的 DATEDIFF(minute, @startDate, @endDate)

DateDiffMinute(DbFunctions, DateTimeOffset, DateTimeOffset)

計算 在 和 endDate 之間 startDate 跨越的分鐘界限數目。 對應至SQL Server 的 DATEDIFF(minute, @startDate, @endDate)

DateDiffMinute(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>)

計算 在 和 endDate 之間 startDate 跨越的分鐘界限數目。 對應至SQL Server 的 DATEDIFF(minute, @startDate, @endDate)

DateDiffMinute(DbFunctions, Nullable<DateTime>, Nullable<DateTime>)

計算 在 和 endDate 之間 startDate 跨越的分鐘界限數目。 對應至SQL Server 的 DATEDIFF(minute, @startDate, @endDate)

DateDiffMinute(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

計算 在 和 endDate 之間 startDate 跨越的分鐘界限數目。 對應至SQL Server 的 DATEDIFF(minute, @startDate, @endDate)

DateDiffMinute(DbFunctions, Nullable<TimeOnly>, Nullable<TimeOnly>)

計算 在 和 endTime 之間 startTime 跨越的分鐘界限數目。 對應至SQL Server 的 DATEDIFF(minute, @startTime, @endTime)

DateDiffMinute(DbFunctions, Nullable<TimeSpan>, Nullable<TimeSpan>)

計算 在 和 endTimeSpan 之間 startTimeSpan 跨越的分鐘界限數目。 對應至SQL Server 的 DATEDIFF(minute, @startTimeSpan, @endTimeSpan)

DateDiffMinute(DbFunctions, TimeOnly, TimeOnly)

計算 在 和 endTime 之間 startTime 跨越的分鐘界限數目。 對應至SQL Server 的 DATEDIFF(minute, @startTime, @endTime)

DateDiffMinute(DbFunctions, TimeSpan, TimeSpan)

計算 在 和 endTimeSpan 之間 startTimeSpan 跨越的分鐘界限數目。 對應至SQL Server 的 DATEDIFF(minute, @startTimeSpan, @endTimeSpan)

DateDiffMonth(DbFunctions, DateOnly, DateOnly)

計算 在 和 endDate 之間 startDate 跨越的月份界限數目。 對應至SQL Server 的 DATEDIFF(month, @startDate, @endDate)

DateDiffMonth(DbFunctions, DateTime, DateTime)

計算 在 和 endDate 之間 startDate 跨越的月份界限數目。 對應至SQL Server 的 DATEDIFF(month, @startDate, @endDate)

DateDiffMonth(DbFunctions, DateTimeOffset, DateTimeOffset)

計算 在 和 endDate 之間 startDate 跨越的月份界限數目。 對應至SQL Server 的 DATEDIFF(month, @startDate, @endDate)

DateDiffMonth(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>)

計算 在 和 endDate 之間 startDate 跨越的月份界限數目。 對應至SQL Server 的 DATEDIFF(month, @startDate, @endDate)

DateDiffMonth(DbFunctions, Nullable<DateTime>, Nullable<DateTime>)

計算 在 和 endDate 之間 startDate 跨越的月份界限數目。 對應至SQL Server 的 DATEDIFF(month, @startDate, @endDate)

DateDiffMonth(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

計算 在 和 endDate 之間 startDate 跨越的月份界限數目。 對應至SQL Server 的 DATEDIFF(month, @startDate, @endDate)

DateDiffNanosecond(DbFunctions, DateOnly, DateOnly)

計算 在 和 endDate 之間 startDate 跨越的奈秒界限數目。 對應至SQL Server 的 DATEDIFF(nanosecond, @startDate, @endDate)

DateDiffNanosecond(DbFunctions, DateTime, DateTime)

計算 在 和 endDate 之間 startDate 跨越的奈秒界限數目。 對應至SQL Server 的 DATEDIFF(nanosecond, @startDate, @endDate)

DateDiffNanosecond(DbFunctions, DateTimeOffset, DateTimeOffset)

計算 在 和 endDate 之間 startDate 跨越的奈秒界限數目。 對應至SQL Server 的 DATEDIFF(nanosecond, @startDate, @endDate)

DateDiffNanosecond(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>)

計算 在 和 endDate 之間 startDate 跨越的奈秒界限數目。 對應至SQL Server 的 DATEDIFF(nanosecond, @startDate, @endDate)

DateDiffNanosecond(DbFunctions, Nullable<DateTime>, Nullable<DateTime>)

計算 在 和 endDate 之間 startDate 跨越的奈秒界限數目。 對應至SQL Server 的 DATEDIFF(nanosecond, @startDate, @endDate)

DateDiffNanosecond(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

計算 在 和 endDate 之間 startDate 跨越的奈秒界限數目。 對應至SQL Server 的 DATEDIFF(nanosecond, @startDate, @endDate)

DateDiffNanosecond(DbFunctions, Nullable<TimeOnly>, Nullable<TimeOnly>)

計算 在 和 endTime 之間 startTime 跨越的奈秒界限數目。 對應至SQL Server 的 DATEDIFF(nanosecond, @startTime, @endTime)

DateDiffNanosecond(DbFunctions, Nullable<TimeSpan>, Nullable<TimeSpan>)

計算 在 和 endTimeSpan 之間 startTimeSpan 跨越的奈秒界限數目。 對應至SQL Server 的 DATEDIFF(nanosecond, @startTimeSpan, @endTimeSpan)

DateDiffNanosecond(DbFunctions, TimeOnly, TimeOnly)

計算 在 和 endTime 之間 startTime 跨越的奈秒界限數目。 對應至SQL Server 的 DATEDIFF(nanosecond, @startTime, @endTime)

DateDiffNanosecond(DbFunctions, TimeSpan, TimeSpan)

計算 在 和 endTimeSpan 之間 startTimeSpan 跨越的奈秒界限數目。 對應至SQL Server 的 DATEDIFF(nanosecond, @startTimeSpan, @endTimeSpan)

DateDiffSecond(DbFunctions, DateOnly, DateOnly)

計算 與 endDate 之間 startDate 跨越的第二個界限數目。 對應至SQL Server 的 DATEDIFF(second, @startDate, @endDate)

DateDiffSecond(DbFunctions, DateTime, DateTime)

計算 與 endDate 之間 startDate 跨越的第二個界限數目。 對應至SQL Server 的 DATEDIFF(second, @startDate, @endDate)

DateDiffSecond(DbFunctions, DateTimeOffset, DateTimeOffset)

計算 與 endDate 之間 startDate 跨越的第二個界限數目。 對應至SQL Server 的 DATEDIFF(second, @startDate, @endDate)

DateDiffSecond(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>)

計算 與 endDate 之間 startDate 跨越的第二個界限數目。 對應至SQL Server 的 DATEDIFF(second, @startDate, @endDate)

DateDiffSecond(DbFunctions, Nullable<DateTime>, Nullable<DateTime>)

計算 與 endDate 之間 startDate 跨越的第二個界限數目。 對應至SQL Server 的 DATEDIFF(second, @startDate, @endDate)

DateDiffSecond(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

計算 與 endDate 之間 startDate 跨越的第二個界限數目。 對應至SQL Server 的 DATEDIFF(second, @startDate, @endDate)

DateDiffSecond(DbFunctions, Nullable<TimeOnly>, Nullable<TimeOnly>)

計算 與 endTime 之間 startTime 跨越的第二個界限數目。 對應至SQL Server 的 DATEDIFF(second, @startTime, @endTime)

DateDiffSecond(DbFunctions, Nullable<TimeSpan>, Nullable<TimeSpan>)

計算 與 endTimeSpan 之間 startTimeSpan 跨越的第二個界限數目。 對應至SQL Server 的 DATEDIFF(second, @startTimeSpan, @endTimeSpan)

DateDiffSecond(DbFunctions, TimeOnly, TimeOnly)

計算 與 endTime 之間 startTime 跨越的第二個界限數目。 對應至SQL Server 的 DATEDIFF(second, @startTime, @endTime)

DateDiffSecond(DbFunctions, TimeSpan, TimeSpan)

計算 與 endTimeSpan 之間 startTimeSpan 跨越的第二個界限數目。 對應至SQL Server 的 DATEDIFF(second, @startTimeSpan, @endTimeSpan)

DateDiffWeek(DbFunctions, DateOnly, DateOnly)

計算 在 和 endDate 之間 startDate 跨越的周界限數目。 對應至SQL Server 的 DATEDIFF(week, @startDate, @endDate)

DateDiffWeek(DbFunctions, DateTime, DateTime)

計算 在 和 endDate 之間 startDate 跨越的周界限數目。 對應至SQL Server 的 DATEDIFF(week, @startDate, @endDate)

DateDiffWeek(DbFunctions, DateTimeOffset, DateTimeOffset)

計算 在 和 endDate 之間 startDate 跨越的周界限數目。 對應至SQL Server 的 DATEDIFF(week, @startDate, @endDate)

DateDiffWeek(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>)

計算 在 和 endDate 之間 startDate 跨越的周界限數目。 對應至SQL Server 的 DATEDIFF(week, @startDate, @endDate)

DateDiffWeek(DbFunctions, Nullable<DateTime>, Nullable<DateTime>)

計算 在 和 endDate 之間 startDate 跨越的周界限數目。 對應至SQL Server 的 DATEDIFF(week, @startDate, @endDate)

DateDiffWeek(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

計算 在 和 endDate 之間 startDate 跨越的周界限數目。 對應至SQL Server 的 DATEDIFF(week, @startDate, @endDate)

DateDiffYear(DbFunctions, DateOnly, DateOnly)

計算 在 和 endDate 之間 startDate 跨越的年份界限數目。 對應至SQL Server 的 DATEDIFF(year, @startDate, @endDate)

DateDiffYear(DbFunctions, DateTime, DateTime)

計算 在 和 endDate 之間 startDate 跨越的年份界限數目。 對應至SQL Server 的 DATEDIFF(year, @startDate, @endDate)

DateDiffYear(DbFunctions, DateTimeOffset, DateTimeOffset)

計算 在 和 endDate 之間 startDate 跨越的年份界限數目。 對應至SQL Server 的 DATEDIFF(year, @startDate, @endDate)

DateDiffYear(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>)

計算 在 和 endDate 之間 startDate 跨越的年份界限數目。 對應至SQL Server 的 DATEDIFF(year, @startDate, @endDate)

DateDiffYear(DbFunctions, Nullable<DateTime>, Nullable<DateTime>)

計算 在 和 endDate 之間 startDate 交叉的年份界限數目。 對應至 SQL Server 的 DATEDIFF(year, @startDate, @endDate)

DateDiffYear(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

計算 在 和 endDate 之間 startDate 交叉的年份界限數目。 對應至 SQL Server 的 DATEDIFF(year, @startDate, @endDate)

DateFromParts(DbFunctions, Int32, Int32, Int32)

將 結構的新實例 DateTime 初始化為指定的年份、月、日。 對應至 SQL Server 的 DATEFROMPARTS(year, month, day)

DateTime2FromParts(DbFunctions, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

將 結構的新實例 DateTime 初始化為指定的年份、月、日、小時、分鐘、秒、分數和精確度。 對應至 SQL Server 的 DATETIME2FROMPARTS(year, month, day, hour, minute, seconds, fractions, precision)

DateTimeFromParts(DbFunctions, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

DateTime 結構的新執行個體初始化為指定的年、月、日、時、分、秒和毫秒。 對應至 SQL Server 的 DATETIMEFROMPARTS(year, month, day, hour, minute, second, millisecond)

DateTimeOffsetFromParts(DbFunctions, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

將 結構的新實例 DateTimeOffset 初始化為指定的年份、月、日、小時、分鐘、秒、分數、hourOffset、minuteOffset 和 precision。 對應至SQL Server DATETIMEOFFSETFROMPARTS(year, month, day, hour, minute, seconds, fractions, hour_offset, minute_offset, precision) .

FreeText(DbFunctions, Object, String)

DbFunction 方法存根,可用於 LINQ 查詢,以SQL Server FREETEXT 存放區函式為目標。

FreeText(DbFunctions, Object, String, Int32)

DbFunction 方法存根,可用於 LINQ 查詢,以SQL Server FREETEXT 存放區函式為目標。

FreeText(DbFunctions, String, String)

DbFunction 方法存根,可用於 LINQ 查詢,以SQL SERVER FREETEXT 存放區函式為目標。

FreeText(DbFunctions, String, String, Int32)

DbFunction 方法存根,可用於 LINQ 查詢,以SQL SERVER FREETEXT 存放區函式為目標。

IsDate(DbFunctions, String)

驗證指定的字串是否為有效的日期。 對應至 SQL Server 的 ISDATE('date')

IsNumeric(DbFunctions, String)

驗證指定的字串是否為有效的數值。 對應至 SQL Server ISNUMERIC(expression)

SmallDateTimeFromParts(DbFunctions, Int32, Int32, Int32, Int32, Int32)

將 結構的新實例 DateTime 初始化為指定的年份、月、日、小時和分鐘。 對應至 SQL Server 的 SMALLDATETIMEFROMPARTS(year, month, day, hour, minute)

StandardDeviationPopulation(DbFunctions, IEnumerable<Byte>)

傳回指定運算式中所有值的母體標準差。 對應至 SQL Server 的 STDEVP

StandardDeviationPopulation(DbFunctions, IEnumerable<Decimal>)

傳回指定運算式中所有值的母體標準差。 對應至 SQL Server 的 STDEVP

StandardDeviationPopulation(DbFunctions, IEnumerable<Double>)

傳回指定運算式中所有值的母體標準差。 對應至 SQL Server 的 STDEVP

StandardDeviationPopulation(DbFunctions, IEnumerable<Int16>)

傳回指定運算式中所有值的母體標準差。 對應至 SQL Server 的 STDEVP

StandardDeviationPopulation(DbFunctions, IEnumerable<Int32>)

傳回指定運算式中所有值的母體標準差。 對應至 SQL Server 的 STDEVP

StandardDeviationPopulation(DbFunctions, IEnumerable<Int64>)

傳回指定運算式中所有值的母體標準差。 對應至 SQL Server 的 STDEVP

StandardDeviationPopulation(DbFunctions, IEnumerable<Single>)

傳回指定運算式中所有值的母體標準差。 對應至 SQL Server 的 STDEVP

StandardDeviationSample(DbFunctions, IEnumerable<Byte>)

傳回指定運算式中所有值的樣本標準差。 對應至 SQL Server 的 STDEV

StandardDeviationSample(DbFunctions, IEnumerable<Decimal>)

傳回指定運算式中所有值的樣本標準差。 對應至 SQL Server 的 STDEV

StandardDeviationSample(DbFunctions, IEnumerable<Double>)

傳回指定運算式中所有值的樣本標準差。 對應至 SQL Server 的 STDEV

StandardDeviationSample(DbFunctions, IEnumerable<Int16>)

傳回指定運算式中所有值的樣本標準差。 對應至 SQL Server 的 STDEV

StandardDeviationSample(DbFunctions, IEnumerable<Int32>)

傳回指定運算式中所有值的樣本標準差。 對應至 SQL Server 的 STDEV

StandardDeviationSample(DbFunctions, IEnumerable<Int64>)

傳回指定運算式中所有值的樣本標準差。 對應至 SQL Server 的 STDEV

StandardDeviationSample(DbFunctions, IEnumerable<Single>)

傳回指定運算式中所有值的樣本標準差。 對應至 SQL Server 的 STDEV

TimeFromParts(DbFunctions, Int32, Int32, Int32, Int32, Int32)

將 結構的新實例 TimeSpan 初始化為指定的小時、分鐘、秒、分數和精確度。 對應至 SQL Server 的 TIMEFROMPARTS(hour, minute, seconds, fractions, precision)

VariancePopulation(DbFunctions, IEnumerable<Byte>)

傳回指定運算式中所有值的母體變異數。 對應至 SQL Server 的 VARP

VariancePopulation(DbFunctions, IEnumerable<Decimal>)

傳回指定運算式中所有值的母體變異數。 對應至 SQL Server 的 VARP

VariancePopulation(DbFunctions, IEnumerable<Double>)

傳回指定運算式中所有值的母體變異數。 對應至 SQL Server 的 VARP

VariancePopulation(DbFunctions, IEnumerable<Int16>)

傳回指定運算式中所有值的母體變異數。 對應至 SQL Server 的 VARP

VariancePopulation(DbFunctions, IEnumerable<Int32>)

傳回指定運算式中所有值的母體變異數。 對應至 SQL Server 的 VARP

VariancePopulation(DbFunctions, IEnumerable<Int64>)

傳回指定運算式中所有值的母體變異數。 對應至 SQL Server 的 VARP

VariancePopulation(DbFunctions, IEnumerable<Single>)

傳回指定運算式中所有值的母體變異數。 對應至 SQL Server 的 VARP

VarianceSample(DbFunctions, IEnumerable<Byte>)

傳回指定運算式中所有值的樣本變異數。 對應至 SQL Server 的 VAR

VarianceSample(DbFunctions, IEnumerable<Decimal>)

傳回指定運算式中所有值的樣本變異數。 對應至 SQL Server 的 VAR

VarianceSample(DbFunctions, IEnumerable<Double>)

傳回指定運算式中所有值的樣本變異數。 對應至 SQL Server 的 VAR

VarianceSample(DbFunctions, IEnumerable<Int16>)

傳回指定運算式中所有值的樣本變異數。 對應至 SQL Server 的 VAR

VarianceSample(DbFunctions, IEnumerable<Int32>)

傳回指定運算式中所有值的樣本變異數。 對應至 SQL Server 的 VAR

VarianceSample(DbFunctions, IEnumerable<Int64>)

傳回指定運算式中所有值的樣本變異數。 對應至 SQL Server 的 VAR

VarianceSample(DbFunctions, IEnumerable<Single>)

傳回指定運算式中所有值的樣本變異數。 對應至 SQL Server 的 VAR

適用於