예제 #1
0
        public virtual void UpdateCount(PhotoApp app)
        {
            int count = PhotoPost.count("AppId=" + app.Id);

            app.PhotoCount = count;
            app.update("PhotoCount");
        }
예제 #2
0
        public virtual void UpdateCommentCount(PhotoApp app)
        {
            int count = PhotoPostComment.find("AppId=" + app.Id).count();

            app.CommentCount = count;
            app.update("CommentCount");
        }
예제 #3
0
 public virtual void UpdateCount( PhotoApp app )
 {
     int count = PhotoPost.count( "AppId=" + app.Id );
     app.PhotoCount = count;
     app.update( "PhotoCount" );
 }
예제 #4
0
 public virtual void UpdateCommentCount( PhotoApp app )
 {
     int count = PhotoPostComment.find( "AppId=" + app.Id ).count();
     app.CommentCount = count;
     app.update( "CommentCount" );
 }