예제 #1
0
        public static void List()
        {
            using (SelectorEntities SelectorContext = new SelectorEntities())
            {
                var list = SelectorContext.PubCatalogs("4040");

                //ObjectQuery oq1 = (ObjectQuery)makes;
                //string str = oq1.ToTraceString();
                //Console.WriteLine(str);

                foreach (var x in list)
                {
                    Console.WriteLine(x.CatalogDescription);
                }

                Console.ReadLine();
            }
        }
예제 #2
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (_selectorContext != null)
     {
         _selectorContext.Dispose();
         _selectorContext = null;
     }
 }