Example #1
0
        static void Main(string[] args)
        {
            Items itms = (Items)new XmlManager().Deserializable(typeof(Items), "qwe.xml");

            using (var db = new ItemContext())
            {
                var a = db.Items.First();
            }

            Console.Read();
        }
Example #2
0
        static void Main(string[] args)
        {

            Items itms = (Items) new XmlManager().Deserializable(typeof(Items), "qwe.xml");


            AdoNetishche w = new AdoNetishche();
            w.addElemet("DbConnect", itms);
          //  w.TestPoolConnectionn("DbConnect");

       //     Stopwatch sWatch = new Stopwatch();

          
                using (var db = new ItemContext())
                {
                    db.Items.First();
                }


            Console.WriteLine("Succes!");
            Console.Read();

        }