SpatialEdmFunctions.SpatialElementAt(DbExpression, DbExpression) Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vytvoří , DbFunctionExpression který vyvolá kanonický 'SpatialElementAt' funkce se zadanými argumenty. První argument musí mít typ výsledku Edm.Geography nebo Edm.Geometry. Druhý argument musí mít celočíselný typ výsledku. Typ výsledku výrazu je stejný jako u 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
Parametry
- spatialValue
- DbExpression
Výraz, který určuje hodnotu kolekce geografie nebo geometrie.
- indexValue
- DbExpression
Výraz, který určuje pozici prvku, který má být načten z geometrie nebo geografické kolekce.
Návraty
Nový DbFunctionExpression, který vrací buď kolekci element na pozici indexValue v spatialValue nebo null, pokud spatialValue není kolekce.
Platí pro
Entity Framework