Ejemplo n.º 1
0
        private static void runthis()
        {
            var dict = new Dictionary<string, dynamic>();
            var pocs = new POCS();
            var table = new pocs();
            Int64 i = 0;
            if (table.Count() == 0)
            {

                while (pocs.MoveNext())
                {
                    i++;
                    if (!dict.ContainsKey(pocs.Current.po_named_insured))
                    {
                        //Console.WriteLine(String.Format("{0}", pocs.Current.po_named_insured.ToString()));
                        if (pocs.Current.po_named_insured != "0" && !String.IsNullOrEmpty(pocs.Current.po_named_insured))
                        {
                            dict.Add(pocs.Current.po_named_insured, pocs.Current.po_named_insured);
                            table.Insert(pocs.Current);
                        }
                    }
                }
                Console.WriteLine(String.Format("{0} Records", i));
            }
            var emptable = new employers();
            if (emptable.Count() == 0)
            {
                var employers = new Employers();
                while (employers.MoveNext())
                {
                    //Console.WriteLine(employers.Current.em_name);
                }
            }
            Console.WriteLine(String.Format("{0} Records", i));
        }