Пример #1
0
 /// <summary>
 /// Create a new Content object.
 /// </summary>
 /// <param name="storyId">Initial value of the StoryId property.</param>
 /// <param name="contentTypeId">Initial value of the ContentTypeId property.</param>
 /// <param name="contentData">Initial value of the ContentData property.</param>
 public static Content CreateContent(global::System.Int32 storyId, global::System.Int32 contentTypeId, global::System.Byte[] contentData)
 {
     Content content = new Content();
     content.StoryId = storyId;
     content.ContentTypeId = contentTypeId;
     content.ContentData = contentData;
     return content;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Contents EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToContents(Content content)
 {
     base.AddObject("Contents", content);
 }