/// <summary>
 /// Create a new Media object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="contentData">Initial value of the ContentData property.</param>
 /// <param name="width">Initial value of the Width property.</param>
 /// <param name="height">Initial value of the Height property.</param>
 /// <param name="thumbnailContentData">Initial value of the ThumbnailContentData property.</param>
 public static Media CreateMedia(global::System.Int32 id, global::System.Byte[] contentData, global::System.Int32 width, global::System.Int32 height, global::System.Byte[] thumbnailContentData)
 {
     Media media = new Media();
     media.Id = id;
     media.ContentData = contentData;
     media.Width = width;
     media.Height = height;
     media.ThumbnailContentData = thumbnailContentData;
     return media;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Media1 EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMedia1(Media media)
 {
     base.AddObject("Media1", media);
 }