/// <summary> /// Create a new Tweet object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="tweetID">Initial value of the TweetID property.</param> /// <param name="date">Initial value of the Date property.</param> /// <param name="username">Initial value of the Username property.</param> /// <param name="tweetText">Initial value of the TweetText property.</param> public static Tweet CreateTweet(global::System.Int32 id, global::System.String tweetID, global::System.DateTime date, global::System.String username, global::System.String tweetText) { Tweet tweet = new Tweet(); tweet.ID = id; tweet.TweetID = tweetID; tweet.Date = date; tweet.Username = username; tweet.TweetText = tweetText; return tweet; }
/// <summary> /// Deprecated Method for adding a new object to the Tweets EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTweets(Tweet tweet) { base.AddObject("Tweets", tweet); }