Inheritance: System.Data.Objects.DataClasses.EntityObject
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="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;
 }