/// <summary> /// Deprecated Method for adding a new object to the MimeTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMimeTypes(MimeType mimeType) { base.AddObject("MimeTypes", mimeType); }
/// <summary> /// Create a new MimeType object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="extension">Initial value of the Extension property.</param> public static MimeType CreateMimeType(global::System.Guid id, global::System.String name, global::System.String extension) { MimeType mimeType = new MimeType(); mimeType.Id = id; mimeType.Name = name; mimeType.Extension = extension; return mimeType; }