Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            StudentDataService studentData = new StudentDataService();
            var data  = studentData.GetAllRecords();
            var table = data.Tables[0];

            foreach (DataRow row in table.Rows)
            {
                foreach (DataColumn column in table.Columns)
                {
                    Console.WriteLine(column.ColumnName + ": " + row[column.ColumnName]);
                }
                Console.WriteLine("==================================");
            }
        }