SpatialEdmFunctions.PointCount(DbExpression) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a DbFunctionExpression that invokes the canonical 'PointCount' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type of the expression is Edm.Int32.
public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression PointCount (this System.Data.Entity.Core.Common.CommandTrees.DbExpression spatialValue);
static member PointCount : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function PointCount (spatialValue As DbExpression) As DbFunctionExpression
Parameters
- spatialValue
- DbExpression
An expression that specifies the spatial line string value from which the number of points should be retrieved.
Returns
A new DbFunctionExpression that returns either the number of points in spatialValue or null if spatialValue is not a line string.
Applies to
Entity Framework