/// <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); }
/// <summary> /// Create a new message object. /// </summary> /// <param name="messageID">Initial value of the messageID property.</param> /// <param name="senderID">Initial value of the senderID property.</param> /// <param name="receiverID">Initial value of the receiverID property.</param> /// <param name="msgBody">Initial value of the msgBody property.</param> /// <param name="msgDate">Initial value of the msgDate property.</param> /// <param name="is_read">Initial value of the is_read property.</param> public static message Createmessage(global::System.Int32 messageID, global::System.Int32 senderID, global::System.Int32 receiverID, global::System.String msgBody, global::System.DateTime msgDate, global::System.Boolean is_read) { message message = new message(); message.messageID = messageID; message.senderID = senderID; message.receiverID = receiverID; message.msgBody = msgBody; message.msgDate = msgDate; message.is_read = is_read; return message; }