/// <summary> /// Create a new Polygon object. /// </summary> /// <param name="regionMapID">Initial value of the RegionMapID property.</param> /// <param name="points">Initial value of the Points property.</param> public static Polygon CreatePolygon(global::System.Int32 regionMapID, global::System.Data.Spatial.DbGeography points) { Polygon polygon = new Polygon(); polygon.RegionMapID = regionMapID; polygon.Points = points; return polygon; }
/// <summary> /// Deprecated Method for adding a new object to the Polygons EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPolygons(Polygon polygon) { base.AddObject("Polygons", polygon); }