/// <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; }
/// <summary> /// Deprecated Method for adding a new object to the Contents EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToContents(Content content) { base.AddObject("Contents", content); }