语言

DbFunctions 类

定义

提供在 LINQ to Entities 查询中使用时转换为数据库函数的 CLR 方法。 可通过访问此类 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
特性

注解

有关详细信息和示例,请参阅 数据库函数 。

扩展方法

名称 说明
AtTimeZone(DbFunctions, DateTime, String)

dateTime转换为目标timeZone中的相应datetimeoffset对象。 对应于SQL ServerAT TIME ZONE构造。

AtTimeZone(DbFunctions, DateTimeOffset, String)

dateTimeOffset转换为由 timeZone. 指定的时区。 对应于SQL ServerAT TIME ZONE构造。

CoalesceUndefined<T>(DbFunctions, T, T)

通过??运算符合并 Cosmos undefined 值。

CoalesceUndefined<T>(DbFunctions, T, T)

通过??运算符合并 Cosmos 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 存储函数。

Contains(DbFunctions, String, String)

可在 LINQ 查询中使用的 DbFunction 方法存根,以面向 SQL Server CONTAINS 存储函数。

CurveToLine(DbFunctions, Geometry)

映射到SQL ServerSTCurveToLine函数,该函数返回包含圆弧线段的实例的多边形近似值。

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)

计算两者之间交叉startDateendDate的分钟边界数。 对应于SQL Server的 DATEDIFF(minute, @startDate, @endDate)。

DateDiffMinute(DbFunctions, DateTime, DateTime)

计算两者之间交叉startDateendDate的分钟边界数。 对应于SQL Server的 DATEDIFF(minute, @startDate, @endDate)。

DateDiffMinute(DbFunctions, DateTimeOffset, DateTimeOffset)

计算两者之间交叉startDateendDate的分钟边界数。 对应于SQL Server的 DATEDIFF(minute, @startDate, @endDate)。

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

计算两者之间交叉startDateendDate的分钟边界数。 对应于SQL Server的 DATEDIFF(minute, @startDate, @endDate)。

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

计算两者之间交叉startDateendDate的分钟边界数。 对应于SQL Server的 DATEDIFF(minute, @startDate, @endDate)。

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

计算两者之间交叉startDateendDate的分钟边界数。 对应于SQL Server的 DATEDIFF(minute, @startDate, @endDate)。

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

计算两者之间交叉startTimeendTime的分钟边界数。 对应于SQL Server的 DATEDIFF(minute, @startTime, @endTime)。

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

计算两者之间交叉startTimeSpanendTimeSpan的分钟边界数。 对应于SQL Server的 DATEDIFF(minute, @startTimeSpan, @endTimeSpan)。

DateDiffMinute(DbFunctions, TimeOnly, TimeOnly)

计算两者之间交叉startTimeendTime的分钟边界数。 对应于SQL Server的 DATEDIFF(minute, @startTime, @endTime)。

DateDiffMinute(DbFunctions, TimeSpan, TimeSpan)

计算两者之间交叉startTimeSpanendTimeSpan的分钟边界数。 对应于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)

计算两者之间跨越startDateendDate的第二个边界的数目。 对应于SQL Server的 DATEDIFF(second, @startDate, @endDate)。

DateDiffSecond(DbFunctions, DateTime, DateTime)

计算两者之间跨越startDateendDate的第二个边界的数目。 对应于SQL Server的 DATEDIFF(second, @startDate, @endDate)。

DateDiffSecond(DbFunctions, DateTimeOffset, DateTimeOffset)

计算两者之间跨越startDateendDate的第二个边界的数目。 对应于SQL Server的 DATEDIFF(second, @startDate, @endDate)。

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

计算两者之间跨越startDateendDate的第二个边界的数目。 对应于SQL Server的 DATEDIFF(second, @startDate, @endDate)。

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

计算两者之间跨越startDateendDate的第二个边界的数目。 对应于SQL Server的 DATEDIFF(second, @startDate, @endDate)。

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

计算两者之间跨越startDateendDate的第二个边界的数目。 对应于SQL Server的 DATEDIFF(second, @startDate, @endDate)。

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

计算两者之间跨越startTimeendTime的第二个边界的数目。 对应于SQL Server的 DATEDIFF(second, @startTime, @endTime)。

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

计算两者之间跨越startTimeSpanendTimeSpan的第二个边界的数目。 对应于SQL Server的 DATEDIFF(second, @startTimeSpan, @endTimeSpan)。

DateDiffSecond(DbFunctions, TimeOnly, TimeOnly)

计算两者之间跨越startTimeendTime的第二个边界的数目。 对应于SQL Server的 DATEDIFF(second, @startTime, @endTime)。

DateDiffSecond(DbFunctions, TimeSpan, TimeSpan)

计算两者之间跨越startTimeSpanendTimeSpan的第二个边界的数目。 对应于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>)

计算介于和endDate之间startDate交叉的年份边界数。 对应于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 初始化为指定的年份、月、日、小时、分钟、秒、分数、hourOffset、minuteOffset 和精度。 对应于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 存储函数。

FreeText(DbFunctions, String, String)

可在 LINQ 查询中使用的 DbFunction 方法存根,以面向 SQL Server FREETEXT 存储函数。

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) 但改用文件系统的语法。

Greatest<T>(DbFunctions, T[])

从给定的值列表中返回最大值。 通常对应于 GREATEST SQL 函数。

Hex(DbFunctions, Byte[])

映射到 SQLite hex 函数,该函数返回表示指定值的十六进制字符串。

IsDate(DbFunctions, String)

验证给定字符串是否为有效日期。 对应于SQL Server的 ISDATE('date')。

IsDefined(DbFunctions, Object)

返回一个布尔值,该值指示是否已为属性赋值。 对应于 Cosmos IS_DEFINED 函数。

IsDefined(DbFunctions, Object)

返回一个布尔值,该值指示是否已为属性赋值。 对应于 Cosmos 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 子字符串函数,该函数返回指定值的子数组。 子数组从指定位置 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>)

使用指定的距离指标计算两个向量之间的距离。

适用于