Esempio n. 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Documents EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDocuments(Document document)
 {
     base.AddObject("Documents", document);
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new Document object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="mediaType">Initial value of the MediaType property.</param>
 /// <param name="fileName">Initial value of the FileName property.</param>
 /// <param name="location">Initial value of the Location property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="locationType">Initial value of the LocationType property.</param>
 public static Document CreateDocument(global::System.Int32 id, global::System.String mediaType, global::System.String fileName, global::System.String location, global::System.String name, global::System.String locationType)
 {
     Document document = new Document();
     document.Id = id;
     document.MediaType = mediaType;
     document.FileName = fileName;
     document.Location = location;
     document.Name = name;
     document.LocationType = locationType;
     return document;
 }