/// <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="contentTypeId">Initial value of the ContentTypeId property.</param> /// <param name="contentTypeCode">Initial value of the ContentTypeCode property.</param> /// <param name="createBy">Initial value of the CreateBy property.</param> /// <param name="createDate">Initial value of the CreateDate property.</param> public static ContentType CreateContentType(global::System.Int32 contentTypeId, global::System.String contentTypeCode, global::System.String createBy, global::System.DateTime createDate) { ContentType contentType = new ContentType(); contentType.ContentTypeId = contentTypeId; contentType.ContentTypeCode = contentTypeCode; contentType.CreateBy = createBy; contentType.CreateDate = createDate; return contentType; }