/// <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);
 }
 /// <summary>
 /// Create a new Document object.
 /// </summary>
 /// <param name="documentId">Initial value of the DocumentId property.</param>
 /// <param name="name">Initial value of the name property.</param>
 /// <param name="dateCreated">Initial value of the DateCreated property.</param>
 /// <param name="dateModified">Initial value of the DateModified property.</param>
 /// <param name="fileContent">Initial value of the fileContent property.</param>
 /// <param name="role">Initial value of the Role property.</param>
 public static Document CreateDocument(global::System.Int32 documentId, global::System.String name, global::System.DateTime dateCreated, global::System.DateTime dateModified, global::System.Byte[] fileContent, global::System.String role)
 {
     Document document = new Document();
     document.DocumentId = documentId;
     document.name = name;
     document.DateCreated = dateCreated;
     document.DateModified = dateModified;
     document.fileContent = fileContent;
     document.Role = role;
     return document;
 }