예제 #1
0
partial         void Ratings_Inserting(Rating entity)
        {
            entity.Achievement.NumberOfRatings = entity.Achievement.NumberOfRatings + 1;
        }
예제 #2
0
partial         void Ratings_Updated(Rating entity)
        {
            StatusLog.UpdateStatus(string.Format("{0} updated r8ing on achievement '{1}' with comment '{2}", Application.User.FullName, entity.Achievement.Description, entity.Comment));
        }
예제 #3
0
partial         void Ratings_Deleting(Rating entity)
        {
            entity.Achievement.NumberOfRatings = entity.Achievement.NumberOfRatings - 1;
        }