Language

SpatialEdmFunctions.Distance(DbExpression, DbExpression) メソッド

定義

指定した引数を使用して正規の 'Distance' 関数を呼び出す DbFunctionExpression を作成します。この関数には、それぞれ Edm.Geography または Edm.Geometry の結果型が必要です。 spatialValue1 の結果の型は、spatialValue2 の結果の型と一致する必要があります。 式の結果の型は Edm.Double です。

public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression Distance(this System.Data.Entity.Core.Common.CommandTrees.DbExpression spatialValue1, System.Data.Entity.Core.Common.CommandTrees.DbExpression spatialValue2);
static member Distance : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Distance (spatialValue1 As DbExpression, spatialValue2 As DbExpression) As DbFunctionExpression

パラメーター

spatialValue1
DbExpression

最初の空間値を指定する式。

spatialValue2
DbExpression

spatialValue1 からの距離を測定する必要がある空間値を指定する式。

戻り値

spatialValue1 内の最も近いポイントと spatialValue1 の間の距離を返す新しい DbFunctionExpression。

適用対象