語言

SqlServerDbFunctionsExtensions 類別

定義

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

[System.Runtime.CompilerServices.Nullable(0)]
public static class SqlServerDbFunctionsExtensions
public static class SqlServerDbFunctionsExtensions
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlServerDbFunctionsExtensions = class
type SqlServerDbFunctionsExtensions = class
Public Module SqlServerDbFunctionsExtensions
繼承
SqlServerDbFunctionsExtensions
屬性

備註

更多資訊與範例請參閱「資料庫函數」及「使用 EF Core 存取 SQL Server 與 Azure SQL 資料庫」。

方法

名稱 Description
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, 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 函式。

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 函式。

IsDate(DbFunctions, String)

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

IsNumeric(DbFunctions, String)

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

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

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

PatIndex(DbFunctions, String, String)

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

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

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

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

適用於