示例#1
0
        public static void Main(string[] args)
        {
            exam_answer_detailTableAdapter adapter = new exam_answer_detailTableAdapter();

            OesDAL.QuestionDS.exam_answer_detailDataTable tableAdapter = adapter.FindUserAnswer(2, 1);
            var rs = from s in tableAdapter select new { s.user_answer };

            foreach (var item in rs)
            {
                Console.WriteLine(item.user_answer);
            }
        }
示例#2
0
 public QuestionDS.exam_answer_detailDataTable FindUserAnswer(int userId, int examId)
 {
     try
     {
         exam_answer_detailTableAdapter adapter = new exam_answer_detailTableAdapter();
         return(adapter.FindUserAnswer(userId, examId));
     }
     catch (Exception e)
     {
         Log4NetHelper.WriteErrorLog(typeof(QuestionManager), e);
     }
     return(null);
 }
示例#3
0
        public QuestionDS.exam_answer_detailDataTable FindUserAnswer(int userId, int examId)
        {
            exam_answer_detailTableAdapter adapter = new exam_answer_detailTableAdapter();

            return(adapter.FindUserAnswer(userId, examId));
        }