public void ReadCommentBase(CommentBase comment) { if (comment.CommentId > -1) { CommentId = comment.CommentId; } if (comment.UserId > -1) { UserId = comment.UserId; } if (comment.ConferenceId > -1) { ConferenceId = comment.ConferenceId; } if (comment.SessionId > -1) { SessionId = comment.SessionId; } Datime = comment.Datime; if (!String.IsNullOrEmpty(comment.Remarks)) { Remarks = comment.Remarks; } if (comment.Visibility > -1) { Visibility = comment.Visibility; } }
public CommentBase GetCommentBase() { CommentBase res = new CommentBase(); res.CommentId = CommentId; res.UserId = UserId; res.ConferenceId = ConferenceId; res.SessionId = SessionId; res.Datime = Datime; res.Remarks = Remarks; res.Visibility = Visibility; return res; }
public CommentBase GetCommentBase() { CommentBase res = new CommentBase(); res.CommentId = CommentId; res.UserId = UserId; res.ConferenceId = ConferenceId; res.SessionId = SessionId; res.Datime = Datime; res.Remarks = Remarks; res.Visibility = Visibility; return(res); }
public void ReadCommentBase(CommentBase comment) { if (comment.CommentId > -1) CommentId = comment.CommentId; if (comment.UserId > -1) UserId = comment.UserId; if (comment.ConferenceId > -1) ConferenceId = comment.ConferenceId; if (comment.SessionId > -1) SessionId = comment.SessionId; Datime = comment.Datime; if (!String.IsNullOrEmpty(comment.Remarks)) Remarks = comment.Remarks; if (comment.Visibility > -1) Visibility = comment.Visibility; }