public void UpdateComments() { BlogApp app = BlogApp.findById(this.AppId); if (app == null) { return; } app.CommentCount = OpenComment.count("AppId=" + this.AppId + " and TargetDataType='" + this.GetType().FullName + "'"); app.update(); }
public void UpdateComments() { BlogApp app = BlogApp.findById(this.AppId); if (app == null) { return; } app.CommentCount = OpenComment.count("AppId=" + this.AppId + " and TargetDataType='" + this.GetType().FullName + "'"); app.update(); }