/// <summary> /// Deprecated Method for adding a new object to the Advertisements EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAdvertisements(Advertisement advertisement) { base.AddObject("Advertisements", advertisement); }
/// <summary> /// Create a new Advertisement object. /// </summary> /// <param name="advertisementID">Initial value of the AdvertisementID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="uRL">Initial value of the URL property.</param> /// <param name="link">Initial value of the Link property.</param> /// <param name="order">Initial value of the Order property.</param> /// <param name="location">Initial value of the Location property.</param> /// <param name="fileType">Initial value of the FileType property.</param> /// <param name="status">Initial value of the Status property.</param> public static Advertisement CreateAdvertisement(global::System.Int32 advertisementID, global::System.String name, global::System.String uRL, global::System.String link, global::System.Int32 order, global::System.Int32 location, global::System.Int32 fileType, global::System.Boolean status) { Advertisement advertisement = new Advertisement(); advertisement.AdvertisementID = advertisementID; advertisement.Name = name; advertisement.URL = uRL; advertisement.Link = link; advertisement.Order = order; advertisement.Location = location; advertisement.FileType = fileType; advertisement.Status = status; return advertisement; }