/// <summary> /// Create a new Document object. /// </summary> /// <param name="documentID">Initial value of the DocumentID property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="fileName">Initial value of the FileName property.</param> /// <param name="fileExtension">Initial value of the FileExtension property.</param> /// <param name="revision">Initial value of the Revision property.</param> /// <param name="changeNumber">Initial value of the ChangeNumber property.</param> /// <param name="status">Initial value of the Status property.</param> /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param> public static Document CreateDocument(global::System.Int32 documentID, global::System.String title, global::System.String fileName, global::System.String fileExtension, global::System.String revision, global::System.Int32 changeNumber, global::System.Byte status, global::System.DateTime modifiedDate) { Document document = new Document(); document.DocumentID = documentID; document.Title = title; document.FileName = fileName; document.FileExtension = fileExtension; document.Revision = revision; document.ChangeNumber = changeNumber; document.Status = status; document.ModifiedDate = modifiedDate; return document; }
/// <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); }