/// <summary> /// Create a new Topic object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> /// <param name="topicCollection_Topic">Initial value of the TopicCollection_Topic property.</param> public static Topic CreateTopic(global::System.Int32 id, global::System.String title, global::System.Byte[] rowVersion, global::System.Int32 topicCollection_Topic) { Topic topic = new Topic(); topic.Id = id; topic.Title = title; topic.RowVersion = rowVersion; topic.TopicCollection_Topic = topicCollection_Topic; return topic; }
/// <summary> /// Deprecated Method for adding a new object to the Topics EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTopics(Topic topic) { base.AddObject("Topics", topic); }