예제 #1
0
        /// <summary>
        /// Create a new WebsiteUpload object.
        /// </summary>
        /// <param name="materialID">Initial value of the MaterialID property.</param>
        /// <param name="title">Initial value of the Title property.</param>
        /// <param name="description">Initial value of the Description property.</param>
        /// <param name="file">Initial value of the File property.</param>
        public static WebsiteUpload CreateWebsiteUpload(global::System.Int32 materialID, global::System.String title, global::System.String description, global::System.String file)
        {
            WebsiteUpload websiteUpload = new WebsiteUpload();

            websiteUpload.MaterialID  = materialID;
            websiteUpload.Title       = title;
            websiteUpload.Description = description;
            websiteUpload.File        = file;
            return(websiteUpload);
        }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the WebsiteUploads EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToWebsiteUploads(WebsiteUpload websiteUpload)
 {
     base.AddObject("WebsiteUploads", websiteUpload);
 }