예제 #1
0
파일: Poco.cs 프로젝트: supermuk/iudico
 private void detach_UserTopicScores(UserTopicScore entity)
 {
     this.SendPropertyChanging();
     entity.User = null;
 }
예제 #2
0
파일: Poco.cs 프로젝트: supermuk/iudico
 private void attach_UserTopicScores(UserTopicScore entity)
 {
     this.SendPropertyChanging();
     entity.Topic = this;
 }
예제 #3
0
 partial void DeleteUserTopicScore(UserTopicScore instance);
예제 #4
0
 partial void UpdateUserTopicScore(UserTopicScore instance);
예제 #5
0
 partial void InsertUserTopicScore(UserTopicScore instance);
예제 #6
0
        public void RateTopic(int topicId, int score)
        {
            var db = GetDbContext();

            var rating = new UserTopicScore {Score = score, TopicId = topicId, UserId = GetCurrentUser().Id};
            db.UserTopicScores.InsertOnSubmit(rating);

            db.SubmitChanges();
        }