Monday, November 17, 2008

Entity Framework Inheritance

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