다음을 통해 공유


SpatialEdmFunctions.SpatialElementAt(DbExpression, DbExpression) 메서드

정의

지정된 인수를 사용하여 정식 'SpatialElementAt' 함수를 호출하는 DbFunctionExpression을 만듭니다. 첫 번째 인수에는 Edm.Geography 또는 Edm.Geometry 결과 형식을 사용해야 합니다. 두 번째 인수에는 정수 결과 형식을 사용해야 합니다. 식의 결과 형식은 spatialValue의 결과 형식과 동일합니다.

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

매개 변수

spatialValue
DbExpression

지리 또는 기하 도형 컬렉션 값을 지정하는 식입니다.

indexValue
DbExpression

기하 도형 또는 지리 컬렉션 내에서 검색할 요소의 위치를 지정하는 식입니다.

반환

spatialValue의 indexValue 위치에 있는 컬렉션 요소를 반환하거나 spatialValue가 컬렉션이 아닌 경우 null을 반환하는 새 DbFunctionExpression입니다.

적용 대상