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); } }
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); }
public QuestionDS.exam_answer_detailDataTable FindUserAnswer(int userId, int examId) { exam_answer_detailTableAdapter adapter = new exam_answer_detailTableAdapter(); return(adapter.FindUserAnswer(userId, examId)); }