All pastes #387153 Raw Edit

reznor

public text v1 · immutable
·published 2007-03-09 03:23 UTC
rendered paste body
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Xml;

namespace SmartMartClientLibrary
{
    internal class Products
    {
        public static void loadAllProductData()
        {
            try
            {
                DataSet XmlDataSet = new SmartMartWebService.SmartMartWebServices().lookupAllProductData();
                DataColumn DirtyColumn = new DataColumn("Dirty");
                DirtyColumn.DefaultValue = 0;
                XmlDataSet.Tables["Products"].Columns.Add(DirtyColumn);
                XmlDataSet.WriteXml(GlobalConstants.XMLDataFile);
                XmlDataSet.WriteXmlSchema(GlobalConstants.XSDDataFile);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}