/// <summary> /// Deprecated Method for adding a new object to the ContentTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToContentTypes(ContentType contentType) { base.AddObject("ContentTypes", contentType); }
/// <summary> /// Create a new ContentType object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="behavior">Initial value of the Behavior property.</param> public static ContentType CreateContentType(global::System.Int32 id, global::System.String description, global::System.String behavior) { ContentType contentType = new ContentType(); contentType.Id = id; contentType.Description = description; contentType.Behavior = behavior; return contentType; }