using (SchoolDataEntities1 store = new SchoolDataEntities1()) { var businessDepts = from dep in store.Departments where dep is DeptBusiness select dep; foreach (var item in businessDepts) { Console.WriteLine(item.GetType().ToString()); } }
No comments:
Post a Comment