/// <summary> /// Deprecated Method for adding a new object to the Forums EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToForums(Forums forums) { base.AddObject("Forums", forums); }
/// <summary> /// Create a new Forums object. /// </summary> /// <param name="itemID">Initial value of the ItemID property.</param> /// <param name="moduleID">Initial value of the ModuleID property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="isModerated">Initial value of the IsModerated property.</param> /// <param name="isActive">Initial value of the IsActive property.</param> /// <param name="sortOrder">Initial value of the SortOrder property.</param> /// <param name="threadCount">Initial value of the ThreadCount property.</param> /// <param name="postCount">Initial value of the PostCount property.</param> /// <param name="mostRecentPostUserID">Initial value of the MostRecentPostUserID property.</param> /// <param name="postsPerPage">Initial value of the PostsPerPage property.</param> /// <param name="threadsPerPage">Initial value of the ThreadsPerPage property.</param> /// <param name="allowAnonymousPosts">Initial value of the AllowAnonymousPosts property.</param> public static Forums CreateForums(global::System.Int32 itemID, global::System.Int32 moduleID, global::System.DateTime createdDate, global::System.Int32 createdBy, global::System.String title, global::System.String description, global::System.Boolean isModerated, global::System.Boolean isActive, global::System.Int32 sortOrder, global::System.Int32 threadCount, global::System.Int32 postCount, global::System.Int32 mostRecentPostUserID, global::System.Int32 postsPerPage, global::System.Int32 threadsPerPage, global::System.Boolean allowAnonymousPosts) { Forums forums = new Forums(); forums.ItemID = itemID; forums.ModuleID = moduleID; forums.CreatedDate = createdDate; forums.CreatedBy = createdBy; forums.Title = title; forums.Description = description; forums.IsModerated = isModerated; forums.IsActive = isActive; forums.SortOrder = sortOrder; forums.ThreadCount = threadCount; forums.PostCount = postCount; forums.MostRecentPostUserID = mostRecentPostUserID; forums.PostsPerPage = postsPerPage; forums.ThreadsPerPage = threadsPerPage; forums.AllowAnonymousPosts = allowAnonymousPosts; return forums; }