示例#1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Media EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMedia(Medium medium)
 {
     base.AddObject("Media", medium);
 }
示例#2
0
 /// <summary>
 /// Create a new Medium object.
 /// </summary>
 /// <param name="mediaId">Initial value of the mediaId property.</param>
 /// <param name="dateCreated">Initial value of the dateCreated property.</param>
 /// <param name="fileName">Initial value of the fileName property.</param>
 /// <param name="mediaType">Initial value of the mediaType property.</param>
 public static Medium CreateMedium(global::System.Guid mediaId, global::System.DateTime dateCreated, global::System.String fileName, global::System.String mediaType)
 {
     Medium medium = new Medium();
     medium.mediaId = mediaId;
     medium.dateCreated = dateCreated;
     medium.fileName = fileName;
     medium.mediaType = mediaType;
     return medium;
 }