public message modelToEntity(Message msg) { var msgData = new message(); msgData.UserID = msg.UserID; msgData.Msg = msg.Msg; // msgData.MessageID = msg.MessageID; return msgData; }
/// <summary> /// Create a new message object. /// </summary> /// <param name="messageID">Initial value of the MessageID property.</param> public static message Createmessage(global::System.Int32 messageID) { message message = new message(); message.MessageID = messageID; 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); }