/// <summary> /// Deprecated Method for adding a new object to the Documents EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDocuments(Document document) { base.AddObject("Documents", document); }
/// <summary> /// Create a new Document object. /// </summary> /// <param name="documentID">Initial value of the DocumentID property.</param> /// <param name="fileName">Initial value of the FileName property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="entryDate">Initial value of the EntryDate property.</param> /// <param name="developerID">Initial value of the DeveloperID property.</param> /// <param name="mimeType">Initial value of the MimeType property.</param> public static Document CreateDocument(global::System.Int32 documentID, global::System.String fileName, global::System.String name, global::System.DateTime entryDate, global::System.Int32 developerID, global::System.String mimeType) { Document document = new Document(); document.DocumentID = documentID; document.FileName = fileName; document.Name = name; document.EntryDate = entryDate; document.DeveloperID = developerID; document.MimeType = mimeType; return document; }