Ejemplo n.º 1
0
        public override XmlDocument GetProblemXmlData(int problemID, string dataKey)
        {
            string command = String.Format("SELECT {0} FROM Problems WHERE ID=@id", dataKey);

            using (MsSqlQuery q = new MsSqlQuery(_connectionString))
                return(q.ExecuteXmlDocument(command, FillID, problemID));
        }
        public override XmlDocument GetTestLog(int submissionID)
        {
            string command = "SELECT TestLog From Submissions WHERE ID=@id";

            using (MsSqlQuery q = new MsSqlQuery(_connectionString))
                return(q.ExecuteXmlDocument(command, FillID, submissionID));
        }