Example #1
0
 /// <summary>
 /// Create a new Content object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="text">Initial value of the Text property.</param>
 public static Content CreateContent(global::System.Int32 id, global::System.String title, global::System.String text)
 {
     Content content = new Content();
     content.Id = id;
     content.Title = title;
     content.Text = text;
     return content;
 }
Example #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Content EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToContent(Content content)
 {
     base.AddObject("Content", content);
 }