/// <summary> /// Create a new Message 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> /// <param name="userFromId">Initial value of the UserFromId property.</param> /// <param name="userToId">Initial value of the UserToId property.</param> /// <param name="isReaded">Initial value of the IsReaded property.</param> public static Message CreateMessage(global::System.Int32 id, global::System.String title, global::System.String text, global::System.Int32 userFromId, global::System.Int32 userToId, global::System.Boolean isReaded) { Message message = new Message(); message.Id = id; message.Title = title; message.Text = text; message.UserFromId = userFromId; message.UserToId = userToId; message.IsReaded = isReaded; return message; }
/// <summary> /// Deprecated Method for adding a new object to the Messages EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMessages(Message message) { base.AddObject("Messages", message); }