語言

CosmosDbFunctionsExtensions 類別

定義

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

public static class CosmosDbFunctionsExtensions
type CosmosDbFunctionsExtensions = class
Public Module CosmosDbFunctionsExtensions
繼承
CosmosDbFunctionsExtensions

備註

更多資訊與範例請參見 資料庫函數及使用 EF Core 存取 Cosmos 。

方法

名稱 Description
CoalesceUndefined<T>(DbFunctions, T, T)

透過??運算子凝聚一個宇宙undefined值。

IsDefined(DbFunctions, Object)

回傳一個布林值,表示該屬性是否已被賦予值。 對應於宇宙 IS_DEFINED 函數。

VectorDistance(DbFunctions, ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>, Boolean, DistanceFunction)

回傳兩個向量之間的距離,給定距離函數(又稱相似度測度)。

VectorDistance(DbFunctions, ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>, Boolean)

回傳兩個向量之間的距離,給定距離函數(又稱相似度測度)。

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

回傳兩個向量之間的距離,使用距離函數及定義的資料型別。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>)

回傳兩個向量之間的距離,使用距離函數及定義的資料型別。IsVector(PropertyBuilder, DistanceFunction, Int32)

適用於