/// <summary> /// Deprecated Method for adding a new object to the MapContent EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMapContent(MapContent mapContent) { base.AddObject("MapContent", mapContent); }
/// <summary> /// Create a new MapContent object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="text">Initial value of the Text property.</param> public static MapContent CreateMapContent(global::System.Int32 id, global::System.String text) { MapContent mapContent = new MapContent(); mapContent.Id = id; mapContent.Text = text; return mapContent; }