예제 #1
0
        static void Main(string[] args)
        {
            string           _textFilePath    = "../../TextContainer.txt";
            string           _xmlFilePath     = "../../XMLContainer.xml";
            DataManipulation dataManipulation = new DataManipulation();

            //1.   Invoke File to File
            dataManipulation.Serialized_TxtInXml(_textFilePath, _xmlFilePath);

            // 2.  Invoke Object to File
            dataManipulation.Serialized_Object(_xmlFilePath, GetListOfStaff());
            Console.ReadKey();
        }
예제 #2
0
        static void Main(string[] args)
        {
            string           _textFilePath    = "../../TextContainer.txt";
            string           _xmlFilePath     = "../../XMLContainer.xml";
            DataManipulation dataManipulation = new DataManipulation();

            item[] items = null;

            //1.   Invoke File to File
            // dataManipulation.Serialized_TxtInXml(_textFilePath,_xmlFilePath);

            // 2.  Invoke Object to File
            // dataManipulation.Serialized_Object(_xmlFilePath, GetListOfStaff());

            // 3. XML to Class
            items = dataManipulation.GetDeserialized_XMLToObject(_xmlFilePath);

            // 4. Connect and Add data from XML To DataSQL
            ADO_Connection.AddToDataBase(items);
            // ADO_Connection.CleanData();

            Console.ReadKey();
        }
        static void Main(string[] args)
        {
            string _textFilePath = "../../TextContainer.txt";
            string _xmlFilePath = "../../XMLContainer.xml";
            DataManipulation dataManipulation = new DataManipulation();
            item[] items = null;

              //1.   Invoke File to File
               // dataManipulation.Serialized_TxtInXml(_textFilePath,_xmlFilePath);

              // 2.  Invoke Object to File
               // dataManipulation.Serialized_Object(_xmlFilePath, GetListOfStaff());

              // 3. XML to Class
               items = dataManipulation.GetDeserialized_XMLToObject(_xmlFilePath);

              // 4. Connect and Add data from XML To DataSQL
            ADO_Connection.AddToDataBase(items);
               // ADO_Connection.CleanData();

            Console.ReadKey();
        }
예제 #4
0
        static void Main(string[] args)
        {
            string _textFilePath = "../../TextContainer.txt";
            string _xmlFilePath = "../../XMLContainer.xml";
            DataManipulation dataManipulation = new DataManipulation();

              //1.   Invoke File to File
            dataManipulation.Serialized_TxtInXml(_textFilePath,_xmlFilePath);

              // 2.  Invoke Object to File
            dataManipulation.Serialized_Object(_xmlFilePath, GetListOfStaff());
            Console.ReadKey();
        }