Exemplo n.º 1
0
        static void Main()
        {
            using (StreamReader datagramReader = new StreamReader(@"..\..\dataTest5.xml"))
            {
                XmlSerializer serializer = new XmlSerializer(typeof(Datagram));
                data = (Datagram)serializer.Deserialize(datagramReader);
            }

            TruncateTables();
            data.InsertIntoDB();
        }