语言

SqlServerDbFunctionsExtensions 类

定义

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

方法

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

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

AtTimeZone(DbFunctions, DateTimeOffset, String)

dateTimeOffset转换为由 timeZone. 指定的时区。 对应于SQL ServerAT 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 存储函数。

Contains(DbFunctions, String, String)

可在 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)

计算两者之间跨越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 存储函数。

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>)

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

适用于