DbFunctions クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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
- 属性
注釈
詳細と例については、 データベース関数 を参照してください。
拡張メソッド
| Name | 説明 |
|---|---|
| AtTimeZone(DbFunctions, DateTime, String) |
|
| AtTimeZone(DbFunctions, DateTimeOffset, String) |
|
| CoalesceUndefined<T>(DbFunctions, T, T) |
|
| CoalesceUndefined<T>(DbFunctions, T, T) |
|
| Collate<TProperty>(DbFunctions, TProperty, String) |
LINQ クエリで使用する照合順序を明示的に指定します。
|
| 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 メソッド スタブ。 |
| CurveToLine(DbFunctions, Geometry) |
円弧セグメントを含むインスタンスの多角形近似を返すSQL Server |
| 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 メソッド スタブ。 |
| FullTextContains(DbFunctions, String, String) |
フルテキスト検索を使用して、指定したプロパティに指定されたキーワードが含まれているかどうかを確認します。 |
| FullTextContainsAll(DbFunctions, String, String[]) |
フルテキスト検索を使用して、指定したプロパティに指定されたすべてのキーワードが含まれているかどうかを確認します。 |
| FullTextContainsAny(DbFunctions, String, String[]) |
フルテキスト検索を使用して、指定したプロパティに特定のキーワードが含まれているかどうかを確認します。 |
| FullTextScore(DbFunctions, String, String[]) |
指定したプロパティとキーワードのフルテキスト検索スコアを返します。 |
| Glob(DbFunctions, String, String) |
Like(DbFunctions, String, String)に似ていますが、代わりにファイル システムの globbing 構文を使用する SQLite |
| Greatest<T>(DbFunctions, T[]) |
指定された値の一覧から最大の値を返します。 通常は、 |
| Hex(DbFunctions, Byte[]) |
指定した値を表す 16 進文字列を返す SQLite |
| IsDate(DbFunctions, String) |
指定された文字列が有効な日付かどうかを検証します。
SQL Serverの |
| IsDefined(DbFunctions, Object) |
プロパティに値が割り当てられているかどうかを示すブール値を返します。 Cosmos |
| IsDefined(DbFunctions, Object) |
プロパティに値が割り当てられているかどうかを示すブール値を返します。 Cosmos |
| IsNumeric(DbFunctions, String) |
指定された文字列が有効な数値であるかどうかを検証します。
SQL Server |
| JsonContains(DbFunctions, Object, Object, String, Nullable<Int32>) |
LINQ クエリでSQL Server |
| JsonPathExists(DbFunctions, Object, String) |
指定した JSON 内に特定の JSON パスが存在するかどうかを示す値を返します。 |
| Least<T>(DbFunctions, T[]) |
指定された値の一覧から最小の値を返します。 通常は、 |
| Like(DbFunctions, String, String, String) |
SQL LIKE 操作の実装。 リレーショナル データベースでは、これは通常、SQL に直接変換されます。 |
| Like(DbFunctions, String, String) |
SQL |
| PatIndex(DbFunctions, String, String) |
指定した式でパターンが最初に出現した位置の開始位置を返します。パターンが見つからない場合は、すべての有効なテキストデータ型と文字データ型で 0 を返します。 |
| Random(DbFunctions) |
0 ~ 1 の範囲の数値を生成するランダム二重数値ジェネレーター (排他的)。 |
| Rrf(DbFunctions, Double[], Double[]) |
2 つ以上の指定された関数によって提供されるスコアを結合します。 |
| Rrf(DbFunctions, Double[]) |
2 つ以上の指定された関数によって提供されるスコアを結合します。 |
| 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の |
| Substr(DbFunctions, Byte[], Int32, Int32) |
指定した値のサブ配列を返す SQLite substr 関数にマップします。 サブ配列は |
| Substr(DbFunctions, Byte[], Int32) |
指定した値のサブ配列を返す SQLite |
| TimeFromParts(DbFunctions, Int32, Int32, Int32, Int32, Int32) |
指定した時間、分、秒、分数、および有効桁数に TimeSpan 構造体の新しいインスタンスを初期化します。 SQL Serverの |
| Unhex(DbFunctions, String, String) |
16 進数文字列のデコードを表す BLOB を返す SQLite |
| Unhex(DbFunctions, String) |
16 進数文字列のデコードを表す BLOB を返す SQLite |
| 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(DbFunctions, ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>, Boolean, DistanceFunction) |
距離関数 (別名類似性メジャー) を指定して、2 つのベクトル間の距離を返します。 |
| VectorDistance(DbFunctions, ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>, Boolean) |
距離関数 (別名類似性メジャー) を指定して、2 つのベクトル間の距離を返します。 |
| VectorDistance(DbFunctions, ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>, Nullable<Boolean>, VectorDistanceOptions) |
距離関数 (別名類似性メジャー) を指定して、2 つのベクトル間の距離を返します。 |
| VectorDistance(DbFunctions, ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>) |
distance 関数と、 IsVector(PropertyBuilder, DistanceFunction, Int32) を使用して定義されたデータ型を使用して、2 つのベクトル間の距離を返します。 |
| VectorDistance(DbFunctions, ReadOnlyMemory<SByte>, ReadOnlyMemory<SByte>, Boolean, DistanceFunction) |
距離関数 (別名類似性メジャー) を指定して、2 つのベクトル間の距離を返します。 |
| VectorDistance(DbFunctions, ReadOnlyMemory<SByte>, ReadOnlyMemory<SByte>, Boolean) |
距離関数 (別名類似性メジャー) を指定して、2 つのベクトル間の距離を返します。 |
| VectorDistance(DbFunctions, ReadOnlyMemory<SByte>, ReadOnlyMemory<SByte>, Nullable<Boolean>, VectorDistanceOptions) |
距離関数 (別名類似性メジャー) を指定して、2 つのベクトル間の距離を返します。 |
| VectorDistance(DbFunctions, ReadOnlyMemory<SByte>, ReadOnlyMemory<SByte>) |
distance 関数と、 IsVector(PropertyBuilder, DistanceFunction, Int32) を使用して定義されたデータ型を使用して、2 つのベクトル間の距離を返します。 |
| VectorDistance(DbFunctions, ReadOnlyMemory<Single>, ReadOnlyMemory<Single>, Boolean, DistanceFunction) |
距離関数 (別名類似性メジャー) を指定して、2 つのベクトル間の距離を返します。 |
| VectorDistance(DbFunctions, ReadOnlyMemory<Single>, ReadOnlyMemory<Single>, Boolean) |
距離関数 (別名類似性メジャー) を指定して、2 つのベクトル間の距離を返します。 |
| VectorDistance(DbFunctions, ReadOnlyMemory<Single>, ReadOnlyMemory<Single>, Nullable<Boolean>, VectorDistanceOptions) |
距離関数 (別名類似性メジャー) を指定して、2 つのベクトル間の距離を返します。 |
| VectorDistance(DbFunctions, ReadOnlyMemory<Single>, ReadOnlyMemory<Single>) |
distance 関数と、 IsVector(PropertyBuilder, DistanceFunction, Int32) を使用して定義されたデータ型を使用して、2 つのベクトル間の距離を返します。 |
| VectorDistance<T>(DbFunctions, String, SqlVector<T>, SqlVector<T>) |
指定された距離メトリックを使用して、2 つのベクトル間の距離を計算します。 |