Example #1
0
        public Result Answer(long id, string answer, int correct, int cost, string userName)
        {
            UserAnswerQB a = new UserAnswerQB()
            {
                UserAnswerQBID = IDProvider.GetNewId("UserAnswerQBID"),
                Answer = answer.Trim(),
                Correct = correct == 1,
                Cost = cost,
                CrUserName = userName,
                CrTime = TimeProvider.Now,
                QuestionID = id
            };
            var con = ContextFactory.GetNewContext();
            con.UserAnswerQBs.InsertOnSubmit(a);
            con.SubmitChanges();

            return Result.Success();
        }
Example #2
0
 partial void DeleteUserAnswerQB(UserAnswerQB instance);
Example #3
0
 partial void UpdateUserAnswerQB(UserAnswerQB instance);
Example #4
0
 partial void InsertUserAnswerQB(UserAnswerQB instance);