partial void Ratings_Inserting(Rating entity) { entity.Achievement.NumberOfRatings = entity.Achievement.NumberOfRatings + 1; }
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)); }
partial void Ratings_Deleting(Rating entity) { entity.Achievement.NumberOfRatings = entity.Achievement.NumberOfRatings - 1; }