語言

DbFunctions 類別

定義

提供 CLR 方法,當用於 LINQ 到 Entities 查詢時,這些方法會被轉換成資料庫函式。 此類別上的方法可透過 Functions存取。

[System.Runtime.CompilerServices.Nullable(0)]
public sealed class DbFunctions
public class DbFunctions
public sealed class DbFunctions
[<System.Runtime.CompilerServices.Nullable(0)>]
type DbFunctions = class
type DbFunctions = class
Public NotInheritable Class DbFunctions
Public Class DbFunctions
繼承
DbFunctions
屬性

備註

更多資訊與範例請參見 資料庫函數 。

擴充方法

名稱 Description
AtTimeZone(DbFunctions, DateTime, String)

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

AtTimeZone(DbFunctions, DateTimeOffset, String)

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

CoalesceUndefined<T>(DbFunctions, T, T)

透過??運算子凝聚一個宇宙undefined值。

CoalesceUndefined<T>(DbFunctions, T, T)

透過??運算子凝聚一個宇宙undefined值。

Collate<TProperty>(DbFunctions, TProperty, String)

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

Contains(DbFunctions, Object, String, Int32)

一個可用於 LINQ 查詢的 DbFunction 方法存根,以鎖定 SQL Server CONTAINS 的儲存函式。

Contains(DbFunctions, Object, String)

一個可用於 LINQ 查詢的 DbFunction 方法存根,以鎖定 SQL Server CONTAINS 的儲存函式。

Contains(DbFunctions, String, String, Int32)

一個可用於 LINQ 查詢的 DbFunction 方法存根,以鎖定 SQL Server CONTAINS 的 store 函式。

Contains(DbFunctions, String, String)

一個可用於 LINQ 查詢的 DbFunction 方法存根,以鎖定 SQL Server CONTAINS 的 store 函式。

CurveToLine(DbFunctions, Geometry)

映射到 SQL Server STCurveToLine 函式,該函式會回傳包含圓弧段的實例的多邊形近似值。

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)

計算與之間跨startDateendDate越的天界數。 對應於 SQL Server DATEDIFF(day, @startDate, @endDate)的 。

DateDiffDay(DbFunctions, DateTime, DateTime)

計算與之間跨startDateendDate越的天界數。 對應於 SQL Server DATEDIFF(day, @startDate, @endDate)的 。

DateDiffDay(DbFunctions, DateTimeOffset, DateTimeOffset)

計算與之間跨startDateendDate越的天界數。 對應於 SQL Server DATEDIFF(day, @startDate, @endDate)的 。

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

計算與之間跨startDateendDate越的天界數。 對應於 SQL Server DATEDIFF(day, @startDate, @endDate)的 。

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

計算與之間跨startDateendDate越的天界數。 對應於 SQL Server DATEDIFF(day, @startDate, @endDate)的 。

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

計算與之間跨startDateendDate越的天界數。 對應於 SQL Server DATEDIFF(day, @startDate, @endDate)的 。

DateDiffHour(DbFunctions, DateOnly, DateOnly)

計算與之間穿越startDateendDate的時界數。 對應於 SQL Server DATEDIFF(hour, @startDate, @endDate)的 。

DateDiffHour(DbFunctions, DateTime, DateTime)

計算與之間穿越startDateendDate的時界數。 對應於 SQL Server DATEDIFF(hour, @startDate, @endDate)的 。

DateDiffHour(DbFunctions, DateTimeOffset, DateTimeOffset)

計算與之間穿越startDateendDate的時界數。 對應於 SQL Server DATEDIFF(hour, @startDate, @endDate)的 。

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

計算與之間穿越startDateendDate的時界數。 對應於 SQL Server DATEDIFF(hour, @startDate, @endDate)的 。

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

計算與之間穿越startDateendDate的時界數。 對應於 SQL Server DATEDIFF(hour, @startDate, @endDate)的 。

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

計算與之間穿越startDateendDate的時界數。 對應於 SQL Server DATEDIFF(hour, @startDate, @endDate)的 。

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

計算與之間穿越startTimeendTime的時界數。 對應於 SQL Server DATEDIFF(hour, @startTime, @endTime)的 。

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

計算與之間穿越startTimeSpanendTimeSpan的時界數。 對應於 SQL Server DATEDIFF(hour, @startTimeSpan, @endTimeSpan)的 。

DateDiffHour(DbFunctions, TimeOnly, TimeOnly)

計算與之間穿越startTimeendTime的時界數。 對應於 SQL Server DATEDIFF(hour, @startTime, @endTime)的 。

DateDiffHour(DbFunctions, TimeSpan, TimeSpan)

計算與之間穿越startTimeSpanendTimeSpan的時界數。 對應於 SQL Server DATEDIFF(hour, @startTimeSpan, @endTimeSpan)的 。

DateDiffMicrosecond(DbFunctions, DateOnly, DateOnly)

計算與之間穿越startDateendDate的微秒邊界數。 對應於 SQL Server DATEDIFF(microsecond, @startDate, @endDate)的 。

DateDiffMicrosecond(DbFunctions, DateTime, DateTime)

計算與之間穿越startDateendDate的微秒邊界數。 對應於 SQL Server DATEDIFF(microsecond, @startDate, @endDate)的 。

DateDiffMicrosecond(DbFunctions, DateTimeOffset, DateTimeOffset)

計算與之間穿越startDateendDate的微秒邊界數。 對應於 SQL Server DATEDIFF(microsecond, @startDate, @endDate)的 。

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

計算與之間穿越startDateendDate的微秒邊界數。 對應於 SQL Server DATEDIFF(microsecond, @startDate, @endDate)的 。

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

計算與之間穿越startDateendDate的微秒邊界數。 對應於 SQL Server DATEDIFF(microsecond, @startDate, @endDate)的 。

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

計算與之間穿越startDateendDate的微秒邊界數。 對應於 SQL Server DATEDIFF(microsecond, @startDate, @endDate)的 。

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

計算與之間穿越startTimeendTime的微秒邊界數。 對應於 SQL Server DATEDIFF(microsecond, @startTime, @endTime)的 。

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

計算與之間穿越startTimeSpanendTimeSpan的微秒邊界數。 對應於 SQL Server DATEDIFF(microsecond, @startTimeSpan, @endTimeSpan)的 。

DateDiffMicrosecond(DbFunctions, TimeOnly, TimeOnly)

計算與之間穿越startTimeendTime的微秒邊界數。 對應於 SQL Server DATEDIFF(microsecond, @startTime, @endTime)的 。

DateDiffMicrosecond(DbFunctions, TimeSpan, TimeSpan)

計算與之間穿越startTimeSpanendTimeSpan的微秒邊界數。 對應於 SQL Server DATEDIFF(microsecond, @startTimeSpan, @endTimeSpan)的 。

DateDiffMillisecond(DbFunctions, DateOnly, DateOnly)

計算與之間穿越startDateendDate的毫秒邊界數。 對應於 SQL Server DATEDIFF(millisecond, @startDate, @endDate)的 。

DateDiffMillisecond(DbFunctions, DateTime, DateTime)

計算與之間穿越startDateendDate的毫秒邊界數。 對應於 SQL Server DATEDIFF(millisecond, @startDate, @endDate)的 。

DateDiffMillisecond(DbFunctions, DateTimeOffset, DateTimeOffset)

計算與之間穿越startDateendDate的毫秒邊界數。 對應於 SQL Server DATEDIFF(millisecond, @startDate, @endDate)的 。

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

計算與之間穿越startDateendDate的毫秒邊界數。 對應於 SQL Server DATEDIFF(millisecond, @startDate, @endDate)的 。

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

計算與之間穿越startDateendDate的毫秒邊界數。 對應於 SQL Server DATEDIFF(millisecond, @startDate, @endDate)的 。

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

計算與之間穿越startDateendDate的毫秒邊界數。 對應於 SQL Server DATEDIFF(millisecond, @startDate, @endDate)的 。

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

計算與之間穿越startTimeendTime的毫秒邊界數。 對應於 SQL Server DATEDIFF(millisecond, @startTime, @endTime)的 。

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

計算與之間穿越startTimeSpanendTimeSpan的毫秒邊界數。 對應於 SQL Server DATEDIFF(millisecond, @startTimeSpan, @endTimeSpan)的 。

DateDiffMillisecond(DbFunctions, TimeOnly, TimeOnly)

計算與之間穿越startTimeendTime的毫秒邊界數。 對應於 SQL Server DATEDIFF(millisecond, @startTime, @endTime)的 。

DateDiffMillisecond(DbFunctions, TimeSpan, TimeSpan)

計算與之間穿越startTimeSpanendTimeSpan的毫秒邊界數。 對應於 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)

計算與 之間跨startDateendDate越的月份邊界數。 對應於 SQL Server DATEDIFF(month, @startDate, @endDate)的 。

DateDiffMonth(DbFunctions, DateTime, DateTime)

計算與 之間跨startDateendDate越的月份邊界數。 對應於 SQL Server DATEDIFF(month, @startDate, @endDate)的 。

DateDiffMonth(DbFunctions, DateTimeOffset, DateTimeOffset)

計算與 之間跨startDateendDate越的月份邊界數。 對應於 SQL Server DATEDIFF(month, @startDate, @endDate)的 。

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

計算與 之間跨startDateendDate越的月份邊界數。 對應於 SQL Server DATEDIFF(month, @startDate, @endDate)的 。

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

計算與 之間跨startDateendDate越的月份邊界數。 對應於 SQL Server DATEDIFF(month, @startDate, @endDate)的 。

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

計算與 之間跨startDateendDate越的月份邊界數。 對應於 SQL Server DATEDIFF(month, @startDate, @endDate)的 。

DateDiffNanosecond(DbFunctions, DateOnly, DateOnly)

計算與之間穿越startDateendDate的奈秒邊界數。 對應於 SQL Server DATEDIFF(nanosecond, @startDate, @endDate)的 。

DateDiffNanosecond(DbFunctions, DateTime, DateTime)

計算與之間穿越startDateendDate的奈秒邊界數。 對應於 SQL Server DATEDIFF(nanosecond, @startDate, @endDate)的 。

DateDiffNanosecond(DbFunctions, DateTimeOffset, DateTimeOffset)

計算與之間穿越startDateendDate的奈秒邊界數。 對應於 SQL Server DATEDIFF(nanosecond, @startDate, @endDate)的 。

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

計算與之間穿越startDateendDate的奈秒邊界數。 對應於 SQL Server DATEDIFF(nanosecond, @startDate, @endDate)的 。

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

計算與之間穿越startDateendDate的奈秒邊界數。 對應於 SQL Server DATEDIFF(nanosecond, @startDate, @endDate)的 。

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

計算與之間穿越startDateendDate的奈秒邊界數。 對應於 SQL Server DATEDIFF(nanosecond, @startDate, @endDate)的 。

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

計算與之間穿越startTimeendTime的奈秒邊界數。 對應於 SQL Server DATEDIFF(nanosecond, @startTime, @endTime)的 。

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

計算與之間穿越startTimeSpanendTimeSpan的奈秒邊界數。 對應於 SQL Server DATEDIFF(nanosecond, @startTimeSpan, @endTimeSpan)的 。

DateDiffNanosecond(DbFunctions, TimeOnly, TimeOnly)

計算與之間穿越startTimeendTime的奈秒邊界數。 對應於 SQL Server DATEDIFF(nanosecond, @startTime, @endTime)的 。

DateDiffNanosecond(DbFunctions, TimeSpan, TimeSpan)

計算與之間穿越startTimeSpanendTimeSpan的奈秒邊界數。 對應於 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)

計算與 之間跨startDateendDate越的週邊界數。 對應於 SQL Server DATEDIFF(week, @startDate, @endDate)的 。

DateDiffWeek(DbFunctions, DateTime, DateTime)

計算與 之間跨startDateendDate越的週邊界數。 對應於 SQL Server DATEDIFF(week, @startDate, @endDate)的 。

DateDiffWeek(DbFunctions, DateTimeOffset, DateTimeOffset)

計算與 之間跨startDateendDate越的週邊界數。 對應於 SQL Server DATEDIFF(week, @startDate, @endDate)的 。

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

計算與 之間跨startDateendDate越的週邊界數。 對應於 SQL Server DATEDIFF(week, @startDate, @endDate)的 。

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

計算與 之間跨startDateendDate越的週邊界數。 對應於 SQL Server DATEDIFF(week, @startDate, @endDate)的 。

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

計算與 之間跨startDateendDate越的週邊界數。 對應於 SQL Server DATEDIFF(week, @startDate, @endDate)的 。

DateDiffYear(DbFunctions, DateOnly, DateOnly)

計算與 之間跨startDateendDate越的年度邊界數量。 對應於 SQL Server DATEDIFF(year, @startDate, @endDate)的 。

DateDiffYear(DbFunctions, DateTime, DateTime)

計算與 之間跨startDateendDate越的年度邊界數量。 對應於 SQL Server DATEDIFF(year, @startDate, @endDate)的 。

DateDiffYear(DbFunctions, DateTimeOffset, DateTimeOffset)

計算與 之間跨startDateendDate越的年度邊界數量。 對應於 SQL Server DATEDIFF(year, @startDate, @endDate)的 。

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

計算與 之間跨startDateendDate越的年度邊界數量。 對應於 SQL Server DATEDIFF(year, @startDate, @endDate)的 。

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

計算與之間跨startDateendDate越的年度邊界數。 對應於 SQL Server DATEDIFF(year, @startDate, @endDate)的 。

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

計算與 之間跨startDateendDate越的年度邊界數量。 對應於 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 ,設定為指定的年份、月份、日、時、分鐘、秒、分數、小時偏移、分鐘偏移及精確度。 對應於 SQL Server DATETIMEOFFSETFROMPARTS(year, month, day, hour, minute, seconds, fractions, hour_offset, minute_offset, precision) .

DateTrunc(DbFunctions, String, DateOnly)

將 date 截斷至指定 datepart 精度。 對應於 SQL Server DATETRUNC(datepart, date)的 。

DateTrunc(DbFunctions, String, DateTime)

將 date 截斷至指定 datepart 精度。 對應於 SQL Server DATETRUNC(datepart, date)的 。

DateTrunc(DbFunctions, String, DateTimeOffset)

將 dateTimeOffset 截斷至指定 datepart 精度。 對應於 SQL Server DATETRUNC(datepart, date)的 。

DateTrunc(DbFunctions, String, Nullable<DateOnly>)

將 date 截斷至指定 datepart 精度。 對應於 SQL Server DATETRUNC(datepart, date)的 。

DateTrunc(DbFunctions, String, Nullable<DateTime>)

將 date 截斷至指定 datepart 精度。 對應於 SQL Server DATETRUNC(datepart, date)的 。

DateTrunc(DbFunctions, String, Nullable<DateTimeOffset>)

將 dateTimeOffset 截斷至指定 datepart 精度。 對應於 SQL Server DATETRUNC(datepart, date)的 。

DateTrunc(DbFunctions, String, Nullable<TimeOnly>)

將 time 截斷至指定 datepart 精度。 對應於 SQL Server DATETRUNC(datepart, date)的 。

DateTrunc(DbFunctions, String, TimeOnly)

將 time 截斷至指定 datepart 精度。 對應於 SQL Server DATETRUNC(datepart, date)的 。

FreeText(DbFunctions, Object, String, Int32)

一個可用於 LINQ 查詢的 DbFunction 方法存根,以鎖定 SQL Server FREETEXT 的儲存函式。

FreeText(DbFunctions, Object, String)

一個可用於 LINQ 查詢的 DbFunction 方法存根,以鎖定 SQL Server FREETEXT 的儲存函式。

FreeText(DbFunctions, String, String, Int32)

一個可用於 LINQ 查詢的 DbFunction 方法存根,以鎖定 SQL Server 的 FREETEXT store 函式。

FreeText(DbFunctions, String, String)

一個可用於 LINQ 查詢的 DbFunction 方法存根,以鎖定 SQL Server 的 FREETEXT store 函式。

FullTextContains(DbFunctions, String, String)

透過全文搜尋檢查指定屬性是否包含該關鍵字。

FullTextContainsAll(DbFunctions, String, String[])

透過全文搜尋檢查指定屬性是否包含所有給定關鍵字。

FullTextContainsAny(DbFunctions, String, String[])

透過全文搜尋檢查指定屬性是否包含任何給定關鍵字。

FullTextScore(DbFunctions, String, String[])

回傳指定屬性及關鍵字的全文搜尋分數。

Glob(DbFunctions, String, String)

映射到 SQLite glob 函式,類似 Like(DbFunctions, String, String) 但使用檔案系統的 globb 語法。

Greatest<T>(DbFunctions, T[])

從給定值清單中回傳最大值。 通常對 GREATEST 應 SQL 函式。

Hex(DbFunctions, Byte[])

映射到 SQLite hex 函式,回傳代表指定值的十六進位字串。

IsDate(DbFunctions, String)

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

IsDefined(DbFunctions, Object)

回傳一個布林值,表示該屬性是否已被賦予值。 對應於宇宙 IS_DEFINED 函數。

IsDefined(DbFunctions, Object)

回傳一個布林值,表示該屬性是否已被賦予值。 對應於宇宙 IS_DEFINED 函數。

IsNumeric(DbFunctions, String)

驗證給定字串是否為有效數值。 對應於 SQL ServerISNUMERIC(expression)。

JsonContains(DbFunctions, Object, Object, String, Nullable<Int32>)

一個可用於 LINQ 查詢的 DbFunction 方法存根,以鎖定 SQL Server JSON_CONTAINS 函式。

JsonPathExists(DbFunctions, Object, String)

回傳一個值,表示指定 JSON 路徑是否存在於指定的 JSON。

Least<T>(DbFunctions, T[])

回傳給定值清單中的最小值。 通常對 LEAST 應 SQL 函式。

Like(DbFunctions, String, String, String)

SQL LIKE 操作的實作。 在關聯式資料庫中,這通常會直接轉換成 SQL。

Like(DbFunctions, String, String)

SQL 操作的實作 LIKE 。 在關聯式資料庫中,這通常會直接轉換成 SQL。

PatIndex(DbFunctions, String, String)

回傳指定表達式中模式首次出現的起始位置,若找不到該模式則為零,適用於所有有效的文字與字元資料型別。

Random(DbFunctions)

一個隨機雙重數產生器,能產生介於0到1之間的數值,且是排他性的。

Rrf(DbFunctions, Double[], Double[])

結合兩個或以上指定函數所提供的分數。

Rrf(DbFunctions, Double[])

結合兩個或以上指定函數所提供的分數。

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的 。

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

映射到 SQLite substr 函式,回傳指定值的子陣列。 子陣列起始於 , startIndex 且具有指定的 length。

Substr(DbFunctions, Byte[], Int32)

映射到 SQLite substr 函式,回傳指定值的子陣列。 子陣列從 開始 startIndex ,一直到該值的末端。

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

初始化結構的新實例 TimeSpan ,設定為指定的時、分、秒、分數及精度。 對應於 SQL Server TIMEFROMPARTS(hour, minute, seconds, fractions, precision)的 。

Unhex(DbFunctions, String, String)

映射到 SQLite unhex 函式,該函式回傳一個代表十六進位字串解碼的 BLOB。

Unhex(DbFunctions, String)

映射到 SQLite unhex 函式,該函式回傳一個代表十六進位字串解碼的 BLOB。

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的 。

VectorDistance(DbFunctions, ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>, Boolean, DistanceFunction)

回傳兩個向量之間的距離,給定距離函數(又稱相似度測度)。

VectorDistance(DbFunctions, ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>, Boolean)

回傳兩個向量之間的距離,給定距離函數(又稱相似度測度)。

VectorDistance(DbFunctions, ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>, Nullable<Boolean>, VectorDistanceOptions)

回傳兩個向量之間的距離,給定距離函數(又稱相似度測度)。

VectorDistance(DbFunctions, ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>)

回傳兩個向量之間的距離,使用距離函數及定義的資料型別。IsVector(PropertyBuilder, DistanceFunction, Int32)

VectorDistance(DbFunctions, ReadOnlyMemory<SByte>, ReadOnlyMemory<SByte>, Boolean, DistanceFunction)

回傳兩個向量之間的距離,給定距離函數(又稱相似度測度)。

VectorDistance(DbFunctions, ReadOnlyMemory<SByte>, ReadOnlyMemory<SByte>, Boolean)

回傳兩個向量之間的距離,給定距離函數(又稱相似度測度)。

VectorDistance(DbFunctions, ReadOnlyMemory<SByte>, ReadOnlyMemory<SByte>, Nullable<Boolean>, VectorDistanceOptions)

回傳兩個向量之間的距離,給定距離函數(又稱相似度測度)。

VectorDistance(DbFunctions, ReadOnlyMemory<SByte>, ReadOnlyMemory<SByte>)

回傳兩個向量之間的距離,使用距離函數及定義的資料型別。IsVector(PropertyBuilder, DistanceFunction, Int32)

VectorDistance(DbFunctions, ReadOnlyMemory<Single>, ReadOnlyMemory<Single>, Boolean, DistanceFunction)

回傳兩個向量之間的距離,給定距離函數(又稱相似度測度)。

VectorDistance(DbFunctions, ReadOnlyMemory<Single>, ReadOnlyMemory<Single>, Boolean)

回傳兩個向量之間的距離,給定距離函數(又稱相似度測度)。

VectorDistance(DbFunctions, ReadOnlyMemory<Single>, ReadOnlyMemory<Single>, Nullable<Boolean>, VectorDistanceOptions)

回傳兩個向量之間的距離,給定距離函數(又稱相似度測度)。

VectorDistance(DbFunctions, ReadOnlyMemory<Single>, ReadOnlyMemory<Single>)

回傳兩個向量之間的距離,使用距離函數及定義的資料型別。IsVector(PropertyBuilder, DistanceFunction, Int32)

VectorDistance<T>(DbFunctions, String, SqlVector<T>, SqlVector<T>)

使用指定的距離計量計算兩個向量之間的距離。

適用於