Exemplo 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);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new Document object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="content">Initial value of the Content property.</param>
 public static Document CreateDocument(global::System.Int32 id, global::System.Byte[] content)
 {
     Document document = new Document();
     document.Id = id;
     document.Content = content;
     return document;
 }