/// <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="title">Initial value of the Title property.</param> /// <param name="createdByUsername">Initial value of the CreatedByUsername property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> public static Document CreateDocument(global::System.Int32 documentId, global::System.String title, global::System.String createdByUsername, global::System.DateTime createdDate) { Document document = new Document(); document.DocumentId = documentId; document.Title = title; document.CreatedByUsername = createdByUsername; document.CreatedDate = createdDate; return document; }