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(); } }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (_selectorContext != null) { _selectorContext.Dispose(); _selectorContext = null; } }