SqlServerDbFunctionsExtensions クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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データベースへのアクセス」を参照してください。
メソッド
| Name | 説明 |
|---|---|
| AtTimeZone(DbFunctions, DateTime, String) |
|
| AtTimeZone(DbFunctions, DateTimeOffset, String) |
|
| Contains(DbFunctions, Object, String, Int32) |
LINQ クエリで使用して、SQL Server |
| Contains(DbFunctions, Object, String) |
LINQ クエリで使用して、SQL Server |
| Contains(DbFunctions, String, String, Int32) |
LINQ クエリで SQL Server CONTAINS ストア関数を対象とするために使用できる DbFunction メソッド スタブ。 |
| Contains(DbFunctions, String, String) |
LINQ クエリで SQL Server CONTAINS ストア関数を対象とするために使用できる DbFunction メソッド スタブ。 |
| 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) |
|
| DateDiffDay(DbFunctions, DateTime, DateTime) |
|
| DateDiffDay(DbFunctions, DateTimeOffset, DateTimeOffset) |
|
| DateDiffDay(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>) |
|
| DateDiffDay(DbFunctions, Nullable<DateTime>, Nullable<DateTime>) |
|
| DateDiffDay(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) |
|
| DateDiffHour(DbFunctions, DateOnly, DateOnly) |
|
| DateDiffHour(DbFunctions, DateTime, DateTime) |
|
| DateDiffHour(DbFunctions, DateTimeOffset, DateTimeOffset) |
|
| DateDiffHour(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>) |
|
| DateDiffHour(DbFunctions, Nullable<DateTime>, Nullable<DateTime>) |
|
| DateDiffHour(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) |
|
| DateDiffHour(DbFunctions, Nullable<TimeOnly>, Nullable<TimeOnly>) |
|
| DateDiffHour(DbFunctions, Nullable<TimeSpan>, Nullable<TimeSpan>) |
|
| DateDiffHour(DbFunctions, TimeOnly, TimeOnly) |
|
| DateDiffHour(DbFunctions, TimeSpan, TimeSpan) |
|
| DateDiffMicrosecond(DbFunctions, DateOnly, DateOnly) |
|
| DateDiffMicrosecond(DbFunctions, DateTime, DateTime) |
|
| DateDiffMicrosecond(DbFunctions, DateTimeOffset, DateTimeOffset) |
|
| DateDiffMicrosecond(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>) |
|
| DateDiffMicrosecond(DbFunctions, Nullable<DateTime>, Nullable<DateTime>) |
|
| DateDiffMicrosecond(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) |
|
| DateDiffMicrosecond(DbFunctions, Nullable<TimeOnly>, Nullable<TimeOnly>) |
|
| DateDiffMicrosecond(DbFunctions, Nullable<TimeSpan>, Nullable<TimeSpan>) |
|
| DateDiffMicrosecond(DbFunctions, TimeOnly, TimeOnly) |
|
| DateDiffMicrosecond(DbFunctions, TimeSpan, TimeSpan) |
|
| DateDiffMillisecond(DbFunctions, DateOnly, DateOnly) |
|
| DateDiffMillisecond(DbFunctions, DateTime, DateTime) |
|
| DateDiffMillisecond(DbFunctions, DateTimeOffset, DateTimeOffset) |
|
| DateDiffMillisecond(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>) |
|
| DateDiffMillisecond(DbFunctions, Nullable<DateTime>, Nullable<DateTime>) |
|
| DateDiffMillisecond(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) |
|
| DateDiffMillisecond(DbFunctions, Nullable<TimeOnly>, Nullable<TimeOnly>) |
|
| DateDiffMillisecond(DbFunctions, Nullable<TimeSpan>, Nullable<TimeSpan>) |
|
| DateDiffMillisecond(DbFunctions, TimeOnly, TimeOnly) |
|
| DateDiffMillisecond(DbFunctions, TimeSpan, TimeSpan) |
|
| DateDiffMinute(DbFunctions, DateOnly, DateOnly) |
|
| DateDiffMinute(DbFunctions, DateTime, DateTime) |
|
| DateDiffMinute(DbFunctions, DateTimeOffset, DateTimeOffset) |
|
| DateDiffMinute(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>) |
|
| DateDiffMinute(DbFunctions, Nullable<DateTime>, Nullable<DateTime>) |
|
| DateDiffMinute(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) |
|
| DateDiffMinute(DbFunctions, Nullable<TimeOnly>, Nullable<TimeOnly>) |
|
| DateDiffMinute(DbFunctions, Nullable<TimeSpan>, Nullable<TimeSpan>) |
|
| DateDiffMinute(DbFunctions, TimeOnly, TimeOnly) |
|
| DateDiffMinute(DbFunctions, TimeSpan, TimeSpan) |
|
| DateDiffMonth(DbFunctions, DateOnly, DateOnly) |
|
| DateDiffMonth(DbFunctions, DateTime, DateTime) |
|
| DateDiffMonth(DbFunctions, DateTimeOffset, DateTimeOffset) |
|
| DateDiffMonth(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>) |
|
| DateDiffMonth(DbFunctions, Nullable<DateTime>, Nullable<DateTime>) |
|
| DateDiffMonth(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) |
|
| DateDiffNanosecond(DbFunctions, DateOnly, DateOnly) |
|
| DateDiffNanosecond(DbFunctions, DateTime, DateTime) |
|
| DateDiffNanosecond(DbFunctions, DateTimeOffset, DateTimeOffset) |
|
| DateDiffNanosecond(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>) |
|
| DateDiffNanosecond(DbFunctions, Nullable<DateTime>, Nullable<DateTime>) |
|
| DateDiffNanosecond(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) |
|
| DateDiffNanosecond(DbFunctions, Nullable<TimeOnly>, Nullable<TimeOnly>) |
|
| DateDiffNanosecond(DbFunctions, Nullable<TimeSpan>, Nullable<TimeSpan>) |
|
| DateDiffNanosecond(DbFunctions, TimeOnly, TimeOnly) |
|
| DateDiffNanosecond(DbFunctions, TimeSpan, TimeSpan) |
|
| DateDiffSecond(DbFunctions, DateOnly, DateOnly) |
|
| DateDiffSecond(DbFunctions, DateTime, DateTime) |
|
| DateDiffSecond(DbFunctions, DateTimeOffset, DateTimeOffset) |
|
| DateDiffSecond(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>) |
|
| DateDiffSecond(DbFunctions, Nullable<DateTime>, Nullable<DateTime>) |
|
| DateDiffSecond(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) |
|
| DateDiffSecond(DbFunctions, Nullable<TimeOnly>, Nullable<TimeOnly>) |
|
| DateDiffSecond(DbFunctions, Nullable<TimeSpan>, Nullable<TimeSpan>) |
|
| DateDiffSecond(DbFunctions, TimeOnly, TimeOnly) |
|
| DateDiffSecond(DbFunctions, TimeSpan, TimeSpan) |
|
| DateDiffWeek(DbFunctions, DateOnly, DateOnly) |
|
| DateDiffWeek(DbFunctions, DateTime, DateTime) |
|
| DateDiffWeek(DbFunctions, DateTimeOffset, DateTimeOffset) |
|
| DateDiffWeek(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>) |
|
| DateDiffWeek(DbFunctions, Nullable<DateTime>, Nullable<DateTime>) |
|
| DateDiffWeek(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) |
|
| DateDiffYear(DbFunctions, DateOnly, DateOnly) |
|
| DateDiffYear(DbFunctions, DateTime, DateTime) |
|
| DateDiffYear(DbFunctions, DateTimeOffset, DateTimeOffset) |
|
| DateDiffYear(DbFunctions, Nullable<DateOnly>, Nullable<DateOnly>) |
|
| DateDiffYear(DbFunctions, Nullable<DateTime>, Nullable<DateTime>) |
|
| DateDiffYear(DbFunctions, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) |
|
| DateFromParts(DbFunctions, Int32, Int32, Int32) |
指定した年、月、日に DateTime 構造体の新しいインスタンスを初期化します。
SQL Serverの |
| DateTime2FromParts(DbFunctions, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
指定した年、月、日、時、分、秒、分数、および有効桁数に DateTime 構造体の新しいインスタンスを初期化します。
SQL Serverの |
| DateTimeFromParts(DbFunctions, Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
指定した年、月、日、時、分、秒、ミリ秒に DateTime 構造体の新しいインスタンスを初期化します。
SQL Serverの |
| DateTimeOffsetFromParts(DbFunctions, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
指定した年、月、日、時、分、秒、分数、hourOffset、minuteOffset、有効桁数に DateTimeOffset 構造体の新しいインスタンスを初期化します。
SQL Serverに対応します。
|
| DateTrunc(DbFunctions, String, DateOnly) |
指定した |
| DateTrunc(DbFunctions, String, DateTime) |
指定した |
| DateTrunc(DbFunctions, String, DateTimeOffset) |
指定した |
| DateTrunc(DbFunctions, String, Nullable<DateOnly>) |
指定した |
| DateTrunc(DbFunctions, String, Nullable<DateTime>) |
指定した |
| DateTrunc(DbFunctions, String, Nullable<DateTimeOffset>) |
指定した |
| DateTrunc(DbFunctions, String, Nullable<TimeOnly>) |
指定した |
| DateTrunc(DbFunctions, String, TimeOnly) |
指定した |
| FreeText(DbFunctions, Object, String, Int32) |
LINQ クエリで使用して、SQL Server |
| FreeText(DbFunctions, Object, String) |
LINQ クエリで使用して、SQL Server |
| FreeText(DbFunctions, String, String, Int32) |
LINQ クエリで使用して、SQL Server FREETEXT ストア関数をターゲットにすることができる DbFunction メソッド スタブ。 |
| FreeText(DbFunctions, String, String) |
LINQ クエリで使用して、SQL Server FREETEXT ストア関数をターゲットにすることができる DbFunction メソッド スタブ。 |
| IsDate(DbFunctions, String) |
指定された文字列が有効な日付かどうかを検証します。
SQL Serverの |
| IsNumeric(DbFunctions, String) |
指定された文字列が有効な数値であるかどうかを検証します。
SQL Server |
| JsonContains(DbFunctions, Object, Object, String, Nullable<Int32>) |
LINQ クエリでSQL Server |
| PatIndex(DbFunctions, String, String) |
指定した式でパターンが最初に出現した位置の開始位置を返します。パターンが見つからない場合は、すべての有効なテキストデータ型と文字データ型で 0 を返します。 |
| SmallDateTimeFromParts(DbFunctions, Int32, Int32, Int32, Int32, Int32) |
指定した年、月、日、時、分に DateTime 構造体の新しいインスタンスを初期化します。
SQL Serverの |
| StandardDeviationPopulation(DbFunctions, IEnumerable<Byte>) |
指定した式のすべての値の母集団標準偏差を返します。
SQL Serverの |
| StandardDeviationPopulation(DbFunctions, IEnumerable<Decimal>) |
指定した式のすべての値の母集団標準偏差を返します。
SQL Serverの |
| StandardDeviationPopulation(DbFunctions, IEnumerable<Double>) |
指定した式のすべての値の母集団標準偏差を返します。
SQL Serverの |
| StandardDeviationPopulation(DbFunctions, IEnumerable<Int16>) |
指定した式のすべての値の母集団標準偏差を返します。
SQL Serverの |
| StandardDeviationPopulation(DbFunctions, IEnumerable<Int32>) |
指定した式のすべての値の母集団標準偏差を返します。
SQL Serverの |
| StandardDeviationPopulation(DbFunctions, IEnumerable<Int64>) |
指定した式のすべての値の母集団標準偏差を返します。
SQL Serverの |
| StandardDeviationPopulation(DbFunctions, IEnumerable<Single>) |
指定した式のすべての値の母集団標準偏差を返します。
SQL Serverの |
| StandardDeviationSample(DbFunctions, IEnumerable<Byte>) |
指定した式のすべての値の標本標準偏差を返します。
SQL Serverの |
| StandardDeviationSample(DbFunctions, IEnumerable<Decimal>) |
指定した式のすべての値の標本標準偏差を返します。
SQL Serverの |
| StandardDeviationSample(DbFunctions, IEnumerable<Double>) |
指定した式のすべての値の標本標準偏差を返します。
SQL Serverの |
| StandardDeviationSample(DbFunctions, IEnumerable<Int16>) |
指定した式のすべての値の標本標準偏差を返します。
SQL Serverの |
| StandardDeviationSample(DbFunctions, IEnumerable<Int32>) |
指定した式のすべての値の標本標準偏差を返します。
SQL Serverの |
| StandardDeviationSample(DbFunctions, IEnumerable<Int64>) |
指定した式のすべての値の標本標準偏差を返します。
SQL Serverの |
| StandardDeviationSample(DbFunctions, IEnumerable<Single>) |
指定した式のすべての値の標本標準偏差を返します。
SQL Serverの |
| TimeFromParts(DbFunctions, Int32, Int32, Int32, Int32, Int32) |
指定した時間、分、秒、分数、および有効桁数に TimeSpan 構造体の新しいインスタンスを初期化します。 SQL Serverの |
| VariancePopulation(DbFunctions, IEnumerable<Byte>) |
指定した式のすべての値の母分散を返します。
SQL Serverの |
| VariancePopulation(DbFunctions, IEnumerable<Decimal>) |
指定した式のすべての値の母分散を返します。
SQL Serverの |
| VariancePopulation(DbFunctions, IEnumerable<Double>) |
指定した式のすべての値の母分散を返します。
SQL Serverの |
| VariancePopulation(DbFunctions, IEnumerable<Int16>) |
指定した式のすべての値の母分散を返します。
SQL Serverの |
| VariancePopulation(DbFunctions, IEnumerable<Int32>) |
指定した式のすべての値の母分散を返します。
SQL Serverの |
| VariancePopulation(DbFunctions, IEnumerable<Int64>) |
指定した式のすべての値の母分散を返します。
SQL Serverの |
| VariancePopulation(DbFunctions, IEnumerable<Single>) |
指定した式のすべての値の母分散を返します。
SQL Serverの |
| VarianceSample(DbFunctions, IEnumerable<Byte>) |
指定した式のすべての値のサンプル分散を返します。
SQL Serverの |
| VarianceSample(DbFunctions, IEnumerable<Decimal>) |
指定した式のすべての値のサンプル分散を返します。
SQL Serverの |
| VarianceSample(DbFunctions, IEnumerable<Double>) |
指定した式のすべての値のサンプル分散を返します。
SQL Serverの |
| VarianceSample(DbFunctions, IEnumerable<Int16>) |
指定した式のすべての値のサンプル分散を返します。
SQL Serverの |
| VarianceSample(DbFunctions, IEnumerable<Int32>) |
指定した式のすべての値のサンプル分散を返します。
SQL Serverの |
| VarianceSample(DbFunctions, IEnumerable<Int64>) |
指定した式のすべての値のサンプル分散を返します。
SQL Serverの |
| VarianceSample(DbFunctions, IEnumerable<Single>) |
指定した式のすべての値のサンプル分散を返します。
SQL Serverの |
| VectorDistance<T>(DbFunctions, String, SqlVector<T>, SqlVector<T>) |
指定された距離メトリックを使用して、2 つのベクトル間の距離を計算します。 |